unncessary

This commit is contained in:
Sridhar Ratnakumar 2021-04-09 23:31:48 -04:00
parent 4ff4c07906
commit 14ace3e43d

View file

@ -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; };
} }
); );
} }