mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
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 ]}
|
|
'';
|
|
}
|