From 4cf60b3452fe7afe2ab649d56dca5087b59326ae Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sun, 20 Sep 2015 02:55:55 +0300 Subject: [PATCH] sl: 3.03 -> 5.02 - Source moved to GitHub - No need to patch Makefile - Install manpage --- pkgs/tools/misc/sl/default.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/misc/sl/default.nix b/pkgs/tools/misc/sl/default.nix index f5bc2edf3caa..d21143f56e23 100644 --- a/pkgs/tools/misc/sl/default.nix +++ b/pkgs/tools/misc/sl/default.nix @@ -1,22 +1,22 @@ -{ stdenv, fetchurl, ncurses }: +{ stdenv, fetchFromGitHub, ncurses }: -stdenv.mkDerivation { - name = "sl-3.03"; +stdenv.mkDerivation rec { + name = "sl-${version}"; + version = "5.02"; - src = fetchurl { - url = "http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl/sl.tar"; - sha256 = "1x3517aza0wm9hhb02npl8s7xy947cdidxmans27q0gjmj3bvg5j"; + src = fetchFromGitHub { + owner = "mtoyoda"; + repo = "sl"; + rev = version; + sha256 = "1zrfd71zx2px2xpapg45s8xvi81xii63yl0h60q72j71zh4sif8b"; }; - patchPhase = '' - sed -i "s/-lcurses -ltermcap/-lncurses/" Makefile - ''; - buildInputs = [ ncurses ]; installPhase = '' - mkdir -p $out/bin + mkdir -p $out/bin $out/share/man/man1 cp sl $out/bin + cp sl.1 $out/share/man/man1 ''; meta = {