nixpkgs/pkgs/games/dxx-rebirth/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.4 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
2020-02-03 14:23:53 +00:00
fetchFromGitHub,
fetchurl,
scons,
pkg-config,
SDL2,
SDL2_image,
SDL2_mixer,
2020-02-03 14:23:53 +00:00
libGLU,
libGL,
libpng,
physfs,
unstableGitUpdater,
}:
let
music = fetchurl {
url = "https://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.dxa";
sha256 = "05mz77vml396mff43dbs50524rlm4fyds6widypagfbh5hc55qdc";
};
2020-02-03 14:23:53 +00:00
in
stdenv.mkDerivation rec {
pname = "dxx-rebirth";
version = "0.60.0-beta2-unstable-2024-11-16";
2020-02-03 14:23:53 +00:00
src = fetchFromGitHub {
owner = "dxx-rebirth";
repo = "dxx-rebirth";
rev = "ebe4aceb721894ff614481e97c50df0fd7e3e814";
hash = "sha256-b6N/qkydI56bkCPhTJ5SwB8OdLqEFJhK9WPA4ELB1BI=";
};
nativeBuildInputs = [
pkg-config
scons
];
buildInputs = [
libGLU
libGL
libpng
physfs
SDL2
SDL2_image
SDL2_mixer
];
enableParallelBuilding = true;
sconsFlags = [ "sdl2=1" ];
env.NIX_CFLAGS_COMPILE = toString [
2020-02-03 14:23:53 +00:00
"-Wno-format-nonliteral"
"-Wno-format-truncation"
];
2018-06-11 00:32:31 +00:00
postInstall = ''
2020-02-03 14:23:53 +00:00
install -Dm644 ${music} $out/share/games/dxx-rebirth/${music.name}
install -Dm644 -t $out/share/doc/dxx-rebirth *.txt
'';
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "Source Port of the Descent 1 and 2 engines";
homepage = "https://www.dxx-rebirth.com/";
2020-02-03 14:23:53 +00:00
license = licenses.gpl3;
maintainers = with maintainers; [ peterhoeg ];
platforms = with platforms; linux;
};
}