mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
* Now Nixpkgs is officially complete.
svn path=/nixpkgs/trunk/; revision=7573
This commit is contained in:
parent
684951cb2e
commit
735bad8c32
21
pkgs/games/rogue/default.nix
Normal file
21
pkgs/games/rogue/default.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{stdenv, fetchurl, ncurses}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "rogue-5.4.2";
|
||||
src = fetchurl {
|
||||
url = http://rogue.rogueforge.net/files/rogue5.4/rogue5.4.2-src.tar.gz;
|
||||
md5 = "bd656cb017a579eba835a0ee445a0a32";
|
||||
};
|
||||
setSourceRoot = "sourceRoot=.";
|
||||
buildInputs = [ncurses];
|
||||
preBuild = "
|
||||
ln -s ${ncurses}/include ncurses
|
||||
substituteInPlace Makefile --replace curses ncurses
|
||||
";
|
||||
installPhase = "
|
||||
ensureDir $out/bin
|
||||
cp rogue54 $out/bin
|
||||
ln -s rogue54 $out/bin/rogue
|
||||
";
|
||||
NIX_CFLAGS_COMPILE = "-I.";
|
||||
}
|
@ -2882,6 +2882,10 @@ rec {
|
||||
inherit fetchurl stdenv x11 SDL mesa openal;
|
||||
};
|
||||
|
||||
rogue = import ../games/rogue {
|
||||
inherit fetchurl stdenv ncurses;
|
||||
};
|
||||
|
||||
scummvm = import ../games/scummvm {
|
||||
inherit fetchurl stdenv SDL;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user