summary refs log tree commit diff
path: root/pkgs/tools/misc/sl/default.nix
blob: 2ed8d89d43e4d2bebeb16fa9f58f465755f6fe2e (plain) (blame)
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, ncurses }:

stdenv.mkDerivation {
  name = "sl-3.03";

  src = fetchurl {
    url = "http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl/sl.tar";
    sha256 = "1x3517aza0wm9hhb02npl8s7xy947cdidxmans27q0gjmj3bvg5j";
  };

  patchPhase = ''
    sed -i "s/-lcurses -ltermcap/-lncurses/" Makefile
  '';

  buildInputs = [ ncurses ];

  installPhase = ''
    mkdir -p $out/bin
    cp sl $out/bin
  '';

  meta = {
    homepage = http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html;
    license = "unfree"; # I couldn't find its license, only a copyright.
    description = "Steam Locomotive runs across your terminal when you type 'sl'";
    platforms = with stdenv.lib.platforms; linux;
  };
}