mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00: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.
17 lines
403 B
Nix
17 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 ]}
|
|
'';
|
|
}
|