1
Fork 0
hare-nix/pkgs/hare-ld.nix

16 lines
299 B
Nix
Raw Normal View History

{
stdenv,
rustc,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hare-ld";
version = "1.0";
buildInputs = [ rustc ];
unpackPhase = ":";
buildPhase = ''
cp ${./ld.rs} ld.rs
rustc -o hare-ld.bin ld.rs
'';
installPhase = "install -m755 -D hare-ld.bin $out/bin/hare-ld";
})