1
- { stdenv , fetchurl , scons , pkgconfig
1
+ { stdenv , fetchurl , fetchpatch , scons , pkgconfig
2
2
, SDL , SDL_mixer , libGLU_combined , physfs
3
3
} :
4
4
@@ -17,12 +17,34 @@ in stdenv.mkDerivation rec {
17
17
sha256 = "0m9k34zyr8bbni9szip407mffdpwbqszgfggavgqjwq0k9c1w7ka" ;
18
18
} ;
19
19
20
+ # TODO: drop these when upgrading to version > 0.59.100
21
+ patches = [
22
+ ( fetchpatch {
23
+ name = "dxx-gcc7-fix1.patch" ;
24
+ url = "https://github.com/dxx-rebirth/dxx-rebirth/commit/1ed7cec714c623758e3418ec69eaf3b3ff03e9f6.patch" ;
25
+ sha256 = "026pn8xglmxryaj8555h5rhzkx30lxmksja1fzdlfyb1vll75gq0" ;
26
+ } )
27
+ ( fetchpatch {
28
+ name = "dxx-gcc7-fix2.patch" ;
29
+ url = "https://github.com/dxx-rebirth/dxx-rebirth/commit/73057ad8ec6977ac747637db1080686f11b4c3cc.patch" ;
30
+ sha256 = "0s506vdd2djrrm3xl0ygn9ylpg6y8qxii2nnzk3sf9133glp3swy" ;
31
+ } )
32
+ ] ;
33
+
20
34
nativeBuildInputs = [ pkgconfig scons ] ;
21
35
22
36
buildInputs = [ libGLU_combined physfs SDL SDL_mixer ] ;
23
37
24
38
enableParallelBuilding = true ;
25
39
40
+ buildPhase = ''
41
+ runHook preBuild
42
+
43
+ scons prefix=$out
44
+
45
+ runHook postBuild
46
+ '' ;
47
+
26
48
installPhase = ''
27
49
runHook preInstall
28
50
@@ -37,7 +59,7 @@ in stdenv.mkDerivation rec {
37
59
description = "Source Port of the Descent 1 and 2 engines" ;
38
60
homepage = http://www.dxx-rebirth.com/ ;
39
61
license = licenses . free ;
40
- maintainers = with maintainers ; [ viric ] ;
62
+ maintainers = with maintainers ; [ viric peterhoeg ] ;
41
63
platforms = with platforms ; linux ;
42
64
} ;
43
65
}
0 commit comments