4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
27 lines
923 B
Nix
27 lines
923 B
Nix
{lib, stdenv, fetchurl, ncurses}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "rogue-5.4.4";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"https://src.fedoraproject.org/repo/pkgs/rogue/rogue5.4.4-src.tar.gz/033288f46444b06814c81ea69d96e075/rogue5.4.4-src.tar.gz"
|
|
"http://ftp.vim.org/ftp/pub/ftp/os/Linux/distr/slitaz/sources/packages-cooking/r/rogue5.4.4-src.tar.gz"
|
|
"http://rogue.rogueforge.net/files/rogue5.4/rogue5.4.4-src.tar.gz"
|
|
];
|
|
sha256 = "18g81274d0f7sr04p7h7irz0d53j6kd9j1y3zbka1gcqq0gscdvx";
|
|
};
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
# Fix build for recent ncurses versions
|
|
NIX_CFLAGS_COMPILE = "-DNCURSES_INTERNALS=1";
|
|
|
|
meta = with lib; {
|
|
homepage = "http://rogue.rogueforge.net/rogue-5-4/";
|
|
description = "The final version of the original Rogue game developed for the UNIX operating system";
|
|
platforms = platforms.all;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.eelco ];
|
|
};
|
|
}
|