nixpkgs/pkgs/development/tools/build-managers/redo-sh/default.nix
sternenseemann 4a56effdfb redo-sh: 2.0.3 → 4.0.3
Additional changes:

* Change platforms from linux to unix. redo-sh should run as long as
  stdenv.shell is a bourne shell.
* Explicitly pass coreutils as a dependency so it can be overriden to
  use, say busybox.
2020-09-15 10:16:30 +02:00

32 lines
820 B
Nix

{ stdenv, fetchurl, makeWrapper, coreutils }:
stdenv.mkDerivation {
version = "4.0.3";
pname = "redo-sh";
src = fetchurl {
url = "http://news.dieweltistgarnichtso.net/bin/archives/redo-sh.tar.gz";
sha256 = "1n84ld4fihqa7a6kn3f177dknz89qcvissfwz1m21bwdq950avia";
};
buildInputs = [ makeWrapper ];
sourceRoot = ".";
installPhase = ''
mkdir -p "$out/share"
mv man "$out/share"
mv bin "$out"
for p in $out/bin/*; do
wrapProgram "$p" --prefix PATH : "$out/bin:${coreutils}/bin"
done
'';
meta = with stdenv.lib; {
description = "Redo implementation in Bourne Shell";
homepage = "http://news.dieweltistgarnichtso.net/bin/redo-sh.html";
license = licenses.agpl3;
platforms = platforms.unix;
maintainers = with maintainers; [ sternenseemann ];
};
}