2022-05-01 12:56:58 +00:00
|
|
|
{ rustPlatform, lib, makeWrapper, patchelf, glibc, binutils }:
|
2021-11-21 00:47:28 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "make-initrd-ng";
|
|
|
|
version = "0.1.0";
|
|
|
|
|
|
|
|
src = ./make-initrd-ng;
|
|
|
|
cargoLock.lockFile = ./make-initrd-ng/Cargo.lock;
|
2022-05-01 12:56:58 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/make-initrd-ng \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ patchelf glibc binutils ]}
|
|
|
|
'';
|
2021-11-21 00:47:28 +00:00
|
|
|
}
|