3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/ts/default.nix
Tobias Geerinckx-Rice b2d7f4b1ba Use common licence attributes from lib/licenses.nix
Many (less easily automatically converted) old-style strings
remain.

Where there was any possible ambiguity about the exact version or
variant intended, nothing was changed. IANAL, nor a search robot.

Use `with stdenv.lib` wherever it makes sense.
2015-05-27 22:00:06 +02:00

31 lines
745 B
Nix

{stdenv, fetchurl,
sendmailPath ? "/var/setuid-wrappers/sendmail" }:
stdenv.mkDerivation rec {
name = "ts-0.7.4";
installPhase=''make install "PREFIX=$out"'';
crossAttrs = {
makeFlags = "CC=${stdenv.cross.config}-gcc";
};
patchPhase = ''
sed -i s,/usr/sbin/sendmail,${sendmailPath}, mail.c ts.1
'';
src = fetchurl {
url = "http://viric.name/~viric/soft/ts/${name}.tar.gz";
sha256 = "042r9a09300v4fdrw4r60g5xi25v5m6g12kvvr6pcsm9qnfqyqqs";
};
meta = with stdenv.lib; {
homepage = "http://vicerveza.homeunix.net/~viric/soft/ts";
description = "task spooler - batch queue";
license = with licenses; gpl2;
maintainers = with maintainers; [ viric ];
platforms = with platforms; all;
};
}