1
0
Fork 0
nixredo/default.nix

24 lines
547 B
Nix
Raw Permalink Normal View History

{ stdenv, lib, findutils, jq, nixUnstable, coreutils }:
stdenv.mkDerivation {
pname = "nixredo";
version = "1";
phases = [ "installPhase" "fixupPhase" ];
binPath = lib.makeBinPath [ findutils coreutils jq nixUnstable ];
buildernix = ./builder.nix;
libnix = ./lib.nix;
2021-02-17 10:44:08 +01:00
files = [ ./nixredo ./nixredo-deps ./nixredo-whichdo ./nixredo-gc ];
installPhase = ''
mkdir -p $out/bin
for f in $files; do
_f=$out/bin/nixredo''${f##*-nixredo}
cp $f $_f
substituteAllInPlace $_f
chmod +x $_f
done
'';
}