nixpkgs/pkgs/tools/misc/sl/default.nix

39 lines
930 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, ncurses }:
2013-03-25 13:56:45 +00:00
stdenv.mkDerivation rec {
pname = "sl";
2019-08-14 17:29:16 +01:00
version = "5.05";
2013-03-25 13:56:45 +00:00
src = fetchFromGitHub {
2019-03-19 20:06:08 +00:00
owner = "eyJhb";
repo = "sl";
2019-04-07 08:16:43 +01:00
rev = version;
2019-08-14 17:29:16 +01:00
sha256 = "11a1rdgb8wagikhxgm81g80g5qsl59mv4qgsval3isykqh8729bj";
2013-03-25 13:56:45 +00:00
};
buildInputs = [ ncurses ];
2019-04-22 14:52:09 +01:00
makeFlags = [ "CC:=$(CC)" ];
2013-03-25 13:56:45 +00:00
installPhase = ''
2019-04-07 08:16:43 +01:00
runHook preInstall
install -Dm755 -t $out/bin sl
install -Dm644 -t $out/share/man/man1 sl.1{,.ja}
runHook postInstall
2013-03-25 13:56:45 +00:00
'';
meta = with lib; {
2019-04-07 08:16:43 +01:00
description = "Steam Locomotive runs across your terminal when you type 'sl'";
homepage = "http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html";
license = rec {
shortName = "Toyoda Masashi's free software license";
fullName = shortName;
url = "https://github.com/eyJhb/sl/blob/master/LICENSE";
};
2019-04-07 08:16:43 +01:00
maintainers = with maintainers; [ eyjhb ];
2019-03-19 20:06:08 +00:00
platforms = platforms.unix;
2013-03-25 13:56:45 +00:00
};
}