2015-09-20 01:55:55 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ncurses }:
|
2013-03-25 14:56:45 +01:00
|
|
|
|
2015-09-20 01:55:55 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sl-${version}";
|
|
|
|
version = "5.02";
|
2013-03-25 14:56:45 +01:00
|
|
|
|
2015-09-20 01:55:55 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mtoyoda";
|
|
|
|
repo = "sl";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1zrfd71zx2px2xpapg45s8xvi81xii63yl0h60q72j71zh4sif8b";
|
2013-03-25 14:56:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2016-08-12 07:10:00 +02:00
|
|
|
buildFlags = [ "CC=cc" ];
|
|
|
|
|
2013-03-25 14:56:45 +01:00
|
|
|
installPhase = ''
|
2015-09-20 01:55:55 +02:00
|
|
|
mkdir -p $out/bin $out/share/man/man1
|
2013-03-25 14:56:45 +01:00
|
|
|
cp sl $out/bin
|
2015-09-20 01:55:55 +02:00
|
|
|
cp sl.1 $out/share/man/man1
|
2013-03-25 14:56:45 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html;
|
2014-08-14 21:25:41 +02:00
|
|
|
license = rec {
|
|
|
|
shortName = "Toyoda Masashi's free software license";
|
|
|
|
fullName = shortName;
|
|
|
|
url = https://github.com/mtoyoda/sl/blob/master/LICENSE;
|
|
|
|
};
|
2013-03-25 14:56:45 +01:00
|
|
|
description = "Steam Locomotive runs across your terminal when you type 'sl'";
|
2015-04-04 06:33:47 +02:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2013-03-25 14:56:45 +01:00
|
|
|
};
|
|
|
|
}
|