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 {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sl";
|
2019-08-14 18:29:16 +02:00
|
|
|
version = "5.05";
|
2013-03-25 14:56:45 +01:00
|
|
|
|
2015-09-20 01:55:55 +02:00
|
|
|
src = fetchFromGitHub {
|
2019-03-19 21:06:08 +01:00
|
|
|
owner = "eyJhb";
|
2015-09-20 01:55:55 +02:00
|
|
|
repo = "sl";
|
2019-04-07 09:16:43 +02:00
|
|
|
rev = version;
|
2019-08-14 18:29:16 +02:00
|
|
|
sha256 = "11a1rdgb8wagikhxgm81g80g5qsl59mv4qgsval3isykqh8729bj";
|
2013-03-25 14:56:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2019-04-22 15:52:09 +02:00
|
|
|
makeFlags = [ "CC:=$(CC)" ];
|
|
|
|
|
2013-03-25 14:56:45 +01:00
|
|
|
installPhase = ''
|
2019-04-07 09:16:43 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 -t $out/bin sl
|
|
|
|
install -Dm644 -t $out/share/man/man1 sl.1{,.ja}
|
|
|
|
|
|
|
|
runHook postInstall
|
2013-03-25 14:56:45 +01:00
|
|
|
'';
|
|
|
|
|
2019-03-19 21:06:08 +01:00
|
|
|
meta = with stdenv.lib; {
|
2019-04-07 09:16:43 +02:00
|
|
|
description = "Steam Locomotive runs across your terminal when you type 'sl'";
|
2020-04-01 03:11:51 +02:00
|
|
|
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;
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://github.com/eyJhb/sl/blob/master/LICENSE";
|
2014-08-14 21:25:41 +02:00
|
|
|
};
|
2019-04-07 09:16:43 +02:00
|
|
|
maintainers = with maintainers; [ eyjhb ];
|
2019-03-19 21:06:08 +01:00
|
|
|
platforms = platforms.unix;
|
2013-03-25 14:56:45 +01:00
|
|
|
};
|
|
|
|
}
|