mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
2e6bf42a22
There ver very many conflicts, basically all due to name -> pname+version. Fortunately, almost everything was auto-resolved by kdiff3, and for now I just fixed up a couple evaluation problems, as verified by the tarball job. There might be some fallback to these conflicts, but I believe it should be minimal. Hydra nixpkgs: ?compare=1538299
39 lines
928 B
Nix
39 lines
928 B
Nix
{ stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sl";
|
|
version = "5.05";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eyJhb";
|
|
repo = "sl";
|
|
rev = version;
|
|
sha256 = "11a1rdgb8wagikhxgm81g80g5qsl59mv4qgsval3isykqh8729bj";
|
|
};
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
makeFlags = [ "CC:=$(CC)" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 -t $out/bin sl
|
|
install -Dm644 -t $out/share/man/man1 sl.1{,.ja}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Steam Locomotive runs across your terminal when you type 'sl'";
|
|
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/eyJhb/sl/blob/master/LICENSE;
|
|
};
|
|
maintainers = with maintainers; [ eyjhb ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|