diff --git a/flake.nix b/flake.nix index b229835..088f803 100644 --- a/flake.nix +++ b/flake.nix @@ -56,16 +56,13 @@ # configure non-Rust dependencies (see below) here. ${name} = oldAttrs: { inherit buildInputs nativeBuildInputs; - } // buildEnvVars; + }; }; }; # Configuration for the non-Rust dependencies buildInputs = with pkgs; [ openssl.dev ]; nativeBuildInputs = with pkgs; [ rustc cargo pkgconfig nixpkgs-fmt ]; - buildEnvVars = { - PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig"; - }; in rec { packages.${name} = project.rootCrate.build; @@ -85,7 +82,7 @@ { inherit buildInputs nativeBuildInputs; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; - } // buildEnvVars; + }; } ); }