3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/sl/default.nix

35 lines
849 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, ncurses }:
2013-03-25 13:56:45 +00:00
stdenv.mkDerivation rec {
name = "sl-${version}";
version = "5.02";
2013-03-25 13:56:45 +00:00
src = fetchFromGitHub {
owner = "mtoyoda";
repo = "sl";
rev = version;
sha256 = "1zrfd71zx2px2xpapg45s8xvi81xii63yl0h60q72j71zh4sif8b";
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
cp sl.1 $out/share/man/man1
2013-03-25 13:56:45 +00:00
'';
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;
};
2013-03-25 13:56:45 +00:00
description = "Steam Locomotive runs across your terminal when you type 'sl'";
2015-04-04 05:33:47 +01:00
platforms = with stdenv.lib.platforms; unix;
2013-03-25 13:56:45 +00:00
};
}