mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 14:35:30 +03:00
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:
commit
3fa75b5189
@ -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