2020-02-03 14:23:53 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, scons
|
|
|
|
, pkgconfig
|
|
|
|
, SDL
|
|
|
|
, SDL_mixer
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, libpng
|
|
|
|
, physfs
|
2018-01-15 02:53:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
music = fetchurl {
|
2018-03-25 06:04:25 +01:00
|
|
|
url = "https://www.dxx-rebirth.com/download/dxx/res/d2xr-sc55-music.dxa";
|
2018-01-15 02:53:21 +00:00
|
|
|
sha256 = "05mz77vml396mff43dbs50524rlm4fyds6widypagfbh5hc55qdc";
|
|
|
|
};
|
|
|
|
|
2020-02-03 14:23:53 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dxx-rebirth";
|
2020-02-03 14:23:53 +00:00
|
|
|
version = "0.59.20200202";
|
2018-01-15 02:53:21 +00:00
|
|
|
|
2020-02-03 14:23:53 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dxx-rebirth";
|
|
|
|
repo = "dxx-rebirth";
|
|
|
|
rev = "8ebb66c5c9c74ebb93d49741cc9545f2bb7fa05d";
|
|
|
|
sha256 = "1lsrlp47aby2m9hh7i3nv5rb0srlkmnq1w2ca6vyvlga9m9h7jrk";
|
2018-01-15 02:53:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig scons ];
|
|
|
|
|
2020-02-03 14:23:53 +00:00
|
|
|
buildInputs = [ libGLU libGL libpng physfs SDL SDL_mixer ];
|
2018-01-15 02:53:21 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-02-03 14:23:53 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-format-nonliteral"
|
|
|
|
"-Wno-format-truncation"
|
|
|
|
];
|
2018-06-11 01:32:31 +01:00
|
|
|
|
2018-11-12 02:52:07 +00:00
|
|
|
postInstall = ''
|
2020-02-03 14:23:53 +00:00
|
|
|
install -Dm644 ${music} $out/share/games/dxx-rebirth/${music.name}
|
2018-01-15 02:53:21 +00:00
|
|
|
install -Dm644 -t $out/share/doc/dxx-rebirth *.txt
|
|
|
|
'';
|
|
|
|
|
2020-02-03 14:23:53 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-01-15 02:53:21 +00:00
|
|
|
description = "Source Port of the Descent 1 and 2 engines";
|
2019-09-24 21:12:05 +01:00
|
|
|
homepage = "https://www.dxx-rebirth.com/";
|
2020-02-03 14:23:53 +00:00
|
|
|
license = licenses.gpl3;
|
2018-07-22 20:50:19 +01:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2018-01-15 02:53:21 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|