nixpkgs/pkgs/build-support/kernel/make-initrd-ng-tool.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
403 B
Nix
Raw Normal View History

{ rustPlatform, lib, makeWrapper, patchelf, glibc, binutils }:
2021-11-21 01:47:28 +01:00
rustPlatform.buildRustPackage {
pname = "make-initrd-ng";
version = "0.1.0";
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 ]}
'';
2021-11-21 01:47:28 +01:00
}