e5995b2235
This strips all elf files as far as possible and removes a lot of unnecessary output. Also wrap in the binaries instead of relying on $PATH.
16 lines
403 B
Nix
16 lines
403 B
Nix
{ rustPlatform, lib, makeWrapper, patchelf, glibc, binutils }:
|
|
|
|
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 ]}
|
|
'';
|
|
}
|