2015-09-19 23:55:55 +00:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses }:
|
2013-03-25 13:56:45 +00:00
|
|
|
|
2015-09-19 23:55:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sl-${version}";
|
|
|
|
version = "5.02";
|
2013-03-25 13:56:45 +00:00
|
|
|
|
2015-09-19 23:55:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mtoyoda";
|
|
|
|
repo = "sl";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1zrfd71zx2px2xpapg45s8xvi81xii63yl0h60q72j71zh4sif8b";
|
2013-03-25 13:56:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2016-08-12 05:10:00 +00:00
|
|
|
buildFlags = [ "CC=cc" ];
|
|
|
|
|
2013-03-25 13:56:45 +00:00
|
|
|
installPhase = ''
|
2015-09-19 23:55:55 +00:00
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
2013-03-25 13:56:45 +00:00
|
|
|
cp sl $out/bin
|
2015-09-19 23:55:55 +00:00
|
|
|
cp sl.1 $out/share/man/man1
|
2013-03-25 13:56:45 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|