summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support/kernel/make-initrd-ng-tool.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/kernel/make-initrd-ng-tool.nix')
-rw-r--r--pkgs/build-support/kernel/make-initrd-ng-tool.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/build-support/kernel/make-initrd-ng-tool.nix b/pkgs/build-support/kernel/make-initrd-ng-tool.nix
index 66ffc09d43cf..654b10367812 100644
--- a/pkgs/build-support/kernel/make-initrd-ng-tool.nix
+++ b/pkgs/build-support/kernel/make-initrd-ng-tool.nix
@@ -1,4 +1,4 @@
-{ rustPlatform }:
+{ rustPlatform, lib, makeWrapper, patchelf, glibc, binutils }:
rustPlatform.buildRustPackage {
pname = "make-initrd-ng";
@@ -6,4 +6,11 @@ rustPlatform.buildRustPackage {
src = ./make-initrd-ng;
cargoLock.lockFile = ./make-initrd-ng/Cargo.lock;
+
+ nativeBuildInputs = [ makeWrapper ];
+
+ postInstall = ''
+ wrapProgram $out/bin/make-initrd-ng \
+ --prefix PATH : ${lib.makeBinPath [ patchelf glibc binutils ]}
+ '';
}