Merge pull request #63 from yusdacra/feat/rust-builder-override

fix(build-rust-package): use produceDerivation to apply overrides to the resulting package(s)
This commit is contained in:
DavHau 2021-12-03 13:06:45 +07:00 committed by GitHub
commit 3fa75b5189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 =