3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/sl/default.nix
Tuomas Tynkkynen 4cf60b3452 sl: 3.03 -> 5.02
- Source moved to GitHub
- No need to patch Makefile
- Install manpage
2015-09-20 02:55:55 +03:00

33 lines
820 B
Nix

{ stdenv, fetchFromGitHub, ncurses }:
stdenv.mkDerivation rec {
name = "sl-${version}";
version = "5.02";
src = fetchFromGitHub {
owner = "mtoyoda";
repo = "sl";
rev = version;
sha256 = "1zrfd71zx2px2xpapg45s8xvi81xii63yl0h60q72j71zh4sif8b";
};
buildInputs = [ ncurses ];
installPhase = ''
mkdir -p $out/bin $out/share/man/man1
cp sl $out/bin
cp sl.1 $out/share/man/man1
'';
meta = {
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/mtoyoda/sl/blob/master/LICENSE;
};
description = "Steam Locomotive runs across your terminal when you type 'sl'";
platforms = with stdenv.lib.platforms; unix;
};
}