fix(build-rust-package): use produceDerivation to apply overrides to the resulting package(s)

This commit is contained in:
Yusuf Bera Ertan 2021-12-03 07:40:55 +03:00
parent 20c8e4bb72
commit 0e236db189
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -12,6 +12,7 @@
getCyclicDependencies,
getDependencies,
getSource,
produceDerivation,
...
}@args:
@ -55,7 +56,7 @@ let
buildPackage = pname: version:
let src = getSource pname version; in
pkgs.rustPlatform.buildRustPackage {
produceDerivation pname (pkgs.rustPlatform.buildRustPackage {
inherit pname version src;
postUnpack = ''
@ -63,7 +64,7 @@ let
'';
cargoVendorDir = "nix-vendor";
};
});
in
rec {
packages =