sl: 3.03 -> 5.02

- Source moved to GitHub
- No need to patch Makefile
- Install manpage
This commit is contained in:
Tuomas Tynkkynen 2015-09-20 02:55:55 +03:00
parent d89912cbdb
commit 4cf60b3452

View File

@ -1,22 +1,22 @@
{ stdenv, fetchurl, ncurses }: { stdenv, fetchFromGitHub, ncurses }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "sl-3.03"; name = "sl-${version}";
version = "5.02";
src = fetchurl { src = fetchFromGitHub {
url = "http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl/sl.tar"; owner = "mtoyoda";
sha256 = "1x3517aza0wm9hhb02npl8s7xy947cdidxmans27q0gjmj3bvg5j"; repo = "sl";
rev = version;
sha256 = "1zrfd71zx2px2xpapg45s8xvi81xii63yl0h60q72j71zh4sif8b";
}; };
patchPhase = ''
sed -i "s/-lcurses -ltermcap/-lncurses/" Makefile
'';
buildInputs = [ ncurses ]; buildInputs = [ ncurses ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin $out/share/man/man1
cp sl $out/bin cp sl $out/bin
cp sl.1 $out/share/man/man1
''; '';
meta = { meta = {