1{stdenv, fetchurl,
2sendmailPath ? "/var/setuid-wrappers/sendmail" }:
3
4stdenv.mkDerivation rec {
5
6 name = "ts-0.7.6";
7
8 installPhase=''make install "PREFIX=$out"'';
9
10 crossAttrs = {
11 makeFlags = "CC=${stdenv.cross.config}-gcc";
12 };
13
14 patchPhase = ''
15 sed -i s,/usr/sbin/sendmail,${sendmailPath}, mail.c ts.1
16 '';
17
18 src = fetchurl {
19 url = "http://viric.name/~viric/soft/ts/${name}.tar.gz";
20 sha256 = "07b61sx3hqpdxlg5a1xrz9sxww9yqdix3bmr0sm917r3rzk87lwk";
21 };
22
23 meta = with stdenv.lib; {
24 homepage = "http://vicerveza.homeunix.net/~viric/soft/ts";
25 description = "Task spooler - batch queue";
26 license = licenses.gpl2;
27 maintainers = with maintainers; [ viric ];
28 platforms = platforms.all;
29 };
30}