unncessary
This commit is contained in:
parent
4ff4c07906
commit
14ace3e43d
1 changed files with 2 additions and 5 deletions
|
@ -56,16 +56,13 @@
|
||||||
# configure non-Rust dependencies (see below) here.
|
# configure non-Rust dependencies (see below) here.
|
||||||
${name} = oldAttrs: {
|
${name} = oldAttrs: {
|
||||||
inherit buildInputs nativeBuildInputs;
|
inherit buildInputs nativeBuildInputs;
|
||||||
} // buildEnvVars;
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configuration for the non-Rust dependencies
|
# Configuration for the non-Rust dependencies
|
||||||
buildInputs = with pkgs; [ openssl.dev ];
|
buildInputs = with pkgs; [ openssl.dev ];
|
||||||
nativeBuildInputs = with pkgs; [ rustc cargo pkgconfig nixpkgs-fmt ];
|
nativeBuildInputs = with pkgs; [ rustc cargo pkgconfig nixpkgs-fmt ];
|
||||||
buildEnvVars = {
|
|
||||||
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
packages.${name} = project.rootCrate.build;
|
packages.${name} = project.rootCrate.build;
|
||||||
|
@ -85,7 +82,7 @@
|
||||||
{
|
{
|
||||||
inherit buildInputs nativeBuildInputs;
|
inherit buildInputs nativeBuildInputs;
|
||||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||||
} // buildEnvVars;
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue