Adding Steam Locomotive, for the fun

This commit is contained in:
Lluís Batlle i Rossell 2013-03-25 14:56:45 +01:00
parent 557b8daa33
commit 26ec1abf41
2 changed files with 30 additions and 0 deletions

@ -0,0 +1,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 = ''
ensureDir $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;
};
}

@ -1577,6 +1577,8 @@ let
fusesmb = callPackage ../tools/filesystems/fusesmb { };
sl = callPackage ../tools/misc/sl { };
socat = callPackage ../tools/networking/socat { };
sourceHighlight = callPackage ../tools/text/source-highlight { };