about summary refs log tree commit diff
path: root/pkgs/task-spooler/default.nix
blob: a90b086261e9ee0fb2a3af9d7af50e8050de9692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl }:
with stdenv.lib;

let
  pname = "task-spooler";
  version = "1.0";
in
  stdenv.mkDerivation {
    inherit pname version;

    src = fetchurl {
      url = "http://vicerveza.homeunix.net/~viric/soft/ts/ts-${version}.tar.gz";
      sha256 = "15dkzczx10fhl0zs9bmcgkxfbwq2znc7bpscljm4rchbzx7y6lsg";
    };

    installPhase = ''
      mkdir -p $out/bin $out/share/man/man1 $out/share/doc/task-spooler
      cp ts $out/bin/tsp
      cp ts.1 $out/share/man/man1/tsp.1
      cp TRICKS $out/share/doc/task-spooler/TRICKS
    '';

    meta = {
      homepage = "http://vicerveza.homeunix.net/~viric/soft/ts/";
      description = "Queue up tasks from the shell for batch execution";
      license = licenses.gpl3;
    };
  }