classicube: 1.3.5 -> 1.3.6

360ied cd856f1f a158dd2e

+7 -11
+4 -8
pkgs/games/classicube/default.nix
··· 15 16 stdenv.mkDerivation rec { 17 pname = "ClassiCube"; 18 - version = "1.3.5"; 19 20 src = fetchFromGitHub { 21 owner = "UnknownShadow200"; 22 repo = "ClassiCube"; 23 rev = version; 24 - sha256 = "sha256-anBi9hPwX1AAIc8dXsKyX4u7UbkKqC1P+7f7wdKWAig="; 25 }; 26 27 nativeBuildInputs = [ dos2unix makeWrapper copyDesktopItems ]; ··· 64 --replace '%NIXPKGS_FONT_PATH%' "${font_path}" 65 # ClassiCube's Makefile hardcodes JOBS=1 for some reason, 66 # even though it works perfectly well multi-threaded. 67 - substituteInPlace src/Makefile \ 68 --replace 'JOBS=1' "JOBS=$NIX_BUILD_CORES" 69 ''; 70 71 buildInputs = [ libX11 libXi libGL curl openal liberation_ttf ]; 72 73 - preBuild = "cd src"; 74 - 75 - postBuild = "cd -"; 76 - 77 installPhase = '' 78 runHook preInstall 79 80 mkdir -p "$out/bin" 81 - cp 'src/ClassiCube' "$out/bin" 82 # ClassiCube puts downloaded resources 83 # next to the location of the executable by default. 84 # This doesn't work with Nix
··· 15 16 stdenv.mkDerivation rec { 17 pname = "ClassiCube"; 18 + version = "1.3.6"; 19 20 src = fetchFromGitHub { 21 owner = "UnknownShadow200"; 22 repo = "ClassiCube"; 23 rev = version; 24 + sha256 = "sha256-7VPn5YXNoAR3ftYMDQuQRqeMCrbyB56ir1sQWBiPWAI="; 25 }; 26 27 nativeBuildInputs = [ dos2unix makeWrapper copyDesktopItems ]; ··· 64 --replace '%NIXPKGS_FONT_PATH%' "${font_path}" 65 # ClassiCube's Makefile hardcodes JOBS=1 for some reason, 66 # even though it works perfectly well multi-threaded. 67 + substituteInPlace Makefile \ 68 --replace 'JOBS=1' "JOBS=$NIX_BUILD_CORES" 69 ''; 70 71 buildInputs = [ libX11 libXi libGL curl openal liberation_ttf ]; 72 73 installPhase = '' 74 runHook preInstall 75 76 mkdir -p "$out/bin" 77 + cp 'ClassiCube' "$out/bin" 78 # ClassiCube puts downloaded resources 79 # next to the location of the executable by default. 80 # This doesn't work with Nix
+3 -3
pkgs/games/classicube/fix-linking.patch
··· 1 - diff --git a/src/Makefile b/src/Makefile 2 index 83188ce..3439cdb 100644 3 - --- a/src/Makefile 4 - +++ b/src/Makefile 5 @@ -40,7 +40,7 @@ LIBS=-mwindows -lws2_32 -lwininet -lwinmm -limagehlp -lcrypt32 -ld3d9 6 endif 7
··· 1 + diff --git a/Makefile b/Makefile 2 index 83188ce..3439cdb 100644 3 + --- a/Makefile 4 + +++ b/Makefile 5 @@ -40,7 +40,7 @@ LIBS=-mwindows -lws2_32 -lwininet -lwinmm -limagehlp -lcrypt32 -ld3d9 6 endif 7