2013-03-25 13:56:45 +00:00
|
|
|
{ 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 = ''
|
2014-06-30 12:56:10 +00:00
|
|
|
mkdir -p $out/bin
|
2013-03-25 13:56:45 +00:00
|
|
|
cp sl $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html;
|
2014-08-14 19:25:41 +00:00
|
|
|
license = rec {
|
|
|
|
shortName = "Toyoda Masashi's free software license";
|
|
|
|
fullName = shortName;
|
|
|
|
url = https://github.com/mtoyoda/sl/blob/master/LICENSE;
|
|
|
|
};
|
2013-03-25 13:56:45 +00:00
|
|
|
description = "Steam Locomotive runs across your terminal when you type 'sl'";
|
2015-04-04 04:33:47 +00:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2013-03-25 13:56:45 +00:00
|
|
|
};
|
|
|
|
}
|