Merge staging-next-21.05 into staging-21.05
This commit is contained in:
commit
0ca91c032a
54
pkgs/games/rott/default.nix
Normal file
54
pkgs/games/rott/default.nix
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{stdenv, lib, fetchurl, SDL, SDL_mixer, makeDesktopItem, copyDesktopItems, runtimeShell, buildShareware ? false}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "rott";
|
||||||
|
version = "1.1.2";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://icculus.org/rott/releases/${pname}-${version}.tar.gz";
|
||||||
|
sha256 = "1zr7v5dv2iqx40gzxbg8mhac7fxz3kqf28y6ysxv1xhjqgl1c98h";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ copyDesktopItems ];
|
||||||
|
buildInputs = [ SDL SDL_mixer ];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
cd rott
|
||||||
|
make clean
|
||||||
|
make SHAREWARE=${if buildShareware then "1" else "0"}
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Include a wrapper script to allow the game to be launched from a user's PATH and load the game data from the user's home directory.
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp rott $out/bin
|
||||||
|
|
||||||
|
cat > $out/bin/launch-rott <<EOF
|
||||||
|
#! ${runtimeShell} -e
|
||||||
|
cd ~/.rott/data
|
||||||
|
exec $out/bin/rott
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x $out/bin/launch-rott
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = "rott";
|
||||||
|
exec = "launch-rott";
|
||||||
|
desktopName = "Rise of the Triad: ${if buildShareware then "The HUNT Begins" else "Dark War"}";
|
||||||
|
categories = "Game;";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "SDL port of Rise of the Triad";
|
||||||
|
homepage = "https://icculus.org/rott/";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ sander ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -878,8 +878,6 @@ let
|
|||||||
# Keeping it a built-in ensures it will be used if possible.
|
# Keeping it a built-in ensures it will be used if possible.
|
||||||
FB_SIMPLE = yes;
|
FB_SIMPLE = yes;
|
||||||
|
|
||||||
} // optionalAttrs (stdenv.hostPlatform.system == "armv7l-linux") {
|
|
||||||
ARM_LPAE = yes;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
@ -214,10 +214,10 @@ in rec {
|
|||||||
|
|
||||||
nixStable = callPackage common (rec {
|
nixStable = callPackage common (rec {
|
||||||
pname = "nix";
|
pname = "nix";
|
||||||
version = "2.3.14";
|
version = "2.3.15";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://nixos.org/releases/nix/${pname}-${version}/${pname}-${version}.tar.xz";
|
url = "https://nixos.org/releases/nix/${pname}-${version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "sha256-cToMnZU3+UpjeiiXnG3clz9zn8Xk+TbB7UbqmLMrlFk=";
|
sha256 = "sha256-N+MxClX94eUOfUMh0puRgNHp16+cjSEdtqZn5u5OtBA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
boehmgc = boehmgc_nix;
|
boehmgc = boehmgc_nix;
|
||||||
|
@ -28629,6 +28629,12 @@ in
|
|||||||
|
|
||||||
rocksndiamonds = callPackage ../games/rocksndiamonds { };
|
rocksndiamonds = callPackage ../games/rocksndiamonds { };
|
||||||
|
|
||||||
|
rott = callPackage ../games/rott { };
|
||||||
|
|
||||||
|
rott-shareware = rott.override {
|
||||||
|
buildShareware = true;
|
||||||
|
};
|
||||||
|
|
||||||
rrootage = callPackage ../games/rrootage { };
|
rrootage = callPackage ../games/rrootage { };
|
||||||
|
|
||||||
saga = libsForQt5.callPackage ../applications/gis/saga {
|
saga = libsForQt5.callPackage ../applications/gis/saga {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user