nixpkgs/pkgs/tools/system/ts/default.nix

31 lines
733 B
Nix
Raw Normal View History

2013-11-11 09:53:17 +01:00
{stdenv, fetchurl,
sendmailPath ? "/var/setuid-wrappers/sendmail" }:
2013-11-11 09:53:17 +01:00
stdenv.mkDerivation rec {
2016-03-19 12:23:34 +01:00
name = "ts-0.7.6";
installPhase=''make install "PREFIX=$out"'';
crossAttrs = {
makeFlags = "CC=${stdenv.cross.config}-gcc";
};
2013-11-11 09:53:17 +01:00
patchPhase = ''
sed -i s,/usr/sbin/sendmail,${sendmailPath}, mail.c ts.1
'';
src = fetchurl {
2013-11-11 09:53:17 +01:00
url = "http://viric.name/~viric/soft/ts/${name}.tar.gz";
2016-03-19 12:23:34 +01:00
sha256 = "07b61sx3hqpdxlg5a1xrz9sxww9yqdix3bmr0sm917r3rzk87lwk";
};
meta = with stdenv.lib; {
homepage = "http://vicerveza.homeunix.net/~viric/soft/ts";
description = "task spooler - batch queue";
license = licenses.gpl2;
maintainers = with maintainers; [ viric ];
platforms = platforms.all;
};
}