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

36 lines
882 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, ncurses }:
2013-03-25 13:56:45 +00:00
stdenv.mkDerivation rec {
name = "sl-${version}";
2019-03-19 20:06:08 +00:00
version = "5.04";
2013-03-25 13:56:45 +00:00
src = fetchFromGitHub {
2019-03-19 20:06:08 +00:00
owner = "eyJhb";
repo = "sl";
2019-03-19 20:06:08 +00:00
rev = "${version}";
sha256 = "029lv6vw39c7gj8bkfyqs8q4g32174vbmghhhgfk8wrhnxq60qn7";
2013-03-25 13:56:45 +00:00
};
buildInputs = [ ncurses ];
2016-08-12 06:10:00 +01:00
buildFlags = [ "CC=cc" ];
2013-03-25 13:56:45 +00:00
installPhase = ''
mkdir -p $out/bin $out/share/man/man1
2013-03-25 13:56:45 +00:00
cp sl $out/bin
2019-03-19 20:06:08 +00:00
cp sl.1 $outputMan
2013-03-25 13:56:45 +00:00
'';
2019-03-19 20:06:08 +00:00
meta = with stdenv.lib; {
2013-03-25 13:56:45 +00:00
homepage = http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html;
license = rec {
shortName = "Toyoda Masashi's free software license";
fullName = shortName;
2019-03-19 20:06:08 +00:00
url = https://github.com/eyJhb/sl/blob/master/LICENSE;
};
2019-03-19 20:06:08 +00:00
maintainers = [ maintainers.eyjhb ];
2013-03-25 13:56:45 +00:00
description = "Steam Locomotive runs across your terminal when you type 'sl'";
2019-03-19 20:06:08 +00:00
platforms = platforms.unix;
2013-03-25 13:56:45 +00:00
};
}