mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-27 06:37:01 +03:00
fix(build-rust-package): use produceDerivation to apply overrides to the resulting package(s)
This commit is contained in:
parent
20c8e4bb72
commit
0e236db189
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user