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

31 lines
734 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 {
2013-11-11 09:53:17 +01:00
name = "ts-0.7.4";
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";
sha256 = "042r9a09300v4fdrw4r60g5xi25v5m6g12kvvr6pcsm9qnfqyqqs";
};
meta = {
homepage = "http://vicerveza.homeunix.net/~viric/soft/ts";
description = "task spooler - batch queue";
license="GPLv2";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; all;
};
}