{titanion,torus-trooper,tumiki-fighters}: use LDC

GDC is going to be dropped in #435019.

I used LDC instead of DMD because it claims better platform support and
faster binaries.

+33 -9
+11 -3
pkgs/by-name/ti/titanion/package.nix
··· 4 4 fetchpatch, 5 5 fetchurl, 6 6 unzip, 7 - gdc, 7 + ldc, 8 8 libGL, 9 9 libGLU, 10 10 SDL, ··· 17 17 patchname: hash: 18 18 fetchpatch { 19 19 name = "${patchname}.patch"; 20 - url = "https://sources.debian.org/data/main/t/titanion/0.3.dfsg1-7/debian/patches/${patchname}"; 20 + url = "https://sources.debian.org/data/main/t/titanion/0.3.dfsg1-8/debian/patches/${patchname}"; 21 21 inherit hash; 22 22 }; 23 23 ··· 43 43 (debianPatch "makefile.patch" "sha256-g0jDPmc0SWXkTLhiczeTse/WGCtgMUsbyPNZzwK3U+o=") 44 44 (debianPatch "dlang_v2.patch" "sha256-tfTAAKlPFSjbfAK1EjeB3unj9tbMlNaajJ+VVSMMiYw=") 45 45 (debianPatch "gdc-8.patch" "sha256-BxkPfSEymq7TDA+yjJHaYsjtGr0Tuu1/sWLwRBAMga4=") 46 + (debianPatch "gcc12.patch" "sha256-Kqmb6hRn6lAHLJMoZ5nGCmHcqfbTUIDq5ahALI2f4a4=") 46 47 ]; 47 48 48 49 postPatch = '' ··· 52 53 substituteInPlace $f \ 53 54 --replace "/usr/" "$out/" 54 55 done 56 + # GDC → DMD/LDC flag compatibility 57 + substituteInPlace Makefile \ 58 + --replace-fail "-o " -of= \ 59 + --replace-fail -Wdeprecated "" \ 60 + --replace-fail -l -L-l 55 61 ''; 56 62 57 63 nativeBuildInputs = [ 58 64 unzip 59 - gdc 65 + ldc 60 66 ]; 61 67 62 68 buildInputs = [ ··· 66 72 SDL_mixer 67 73 bulletml 68 74 ]; 75 + 76 + makeFlags = [ "GDC=ldc2" ]; 69 77 70 78 installPhase = '' 71 79 runHook preInstall
+11 -3
pkgs/by-name/to/torus-trooper/package.nix
··· 4 4 fetchpatch, 5 5 fetchurl, 6 6 unzip, 7 - gdc, 7 + ldc, 8 8 libGL, 9 9 libGLU, 10 10 SDL, ··· 17 17 patchname: hash: 18 18 fetchpatch { 19 19 name = "${patchname}.patch"; 20 - url = "https://sources.debian.org/data/main/t/torus-trooper/0.22.dfsg1-12/debian/patches/${patchname}.patch"; 20 + url = "https://sources.debian.org/data/main/t/torus-trooper/0.22.dfsg1-14/debian/patches/${patchname}.patch"; 21 21 sha256 = hash; 22 22 }; 23 23 ··· 48 48 (debianPatch "libbulletml0v5-segfault" "0pad2daz60hswkhkdpssxaqc9p9ca0sw1nraqzr453x0zdwwq0hn") 49 49 (debianPatch "std.math.fabs" "18xnnqlj20bxv2h9fa8dn4rmxwi3k6y3g50kwvh8i8p3b4hgag3r") 50 50 (debianPatch "gdc-8" "10z702y75c48hjcnvv8m7f3ka52cj3r3jqafdbby85nb0p2lbssx") 51 + (debianPatch "gcc12" "sha256-8zNwhteRW3xWFsdoTOLIPPZn2cqCE1mS7UDYP1DzSQQ=") 51 52 ]; 52 53 53 54 postPatch = '' ··· 55 56 substituteInPlace $f \ 56 57 --replace "/usr/" "$out/" 57 58 done 59 + # GDC → DMD/LDC flag compatibility 60 + substituteInPlace Makefile \ 61 + --replace-fail "-o " -of= \ 62 + --replace-fail -Wno-deprecated "" \ 63 + --replace-fail -l -L-l 58 64 ''; 59 65 60 66 nativeBuildInputs = [ 61 67 unzip 62 - gdc 68 + ldc 63 69 ]; 64 70 65 71 buildInputs = [ ··· 69 75 SDL_mixer 70 76 bulletml 71 77 ]; 78 + 79 + makeFlags = [ "GDC=ldc2" ]; 72 80 73 81 installPhase = '' 74 82 install -Dm755 torus-trooper $out/bin/torus-trooper
+11 -3
pkgs/by-name/tu/tumiki-fighters/package.nix
··· 4 4 fetchpatch, 5 5 fetchurl, 6 6 unzip, 7 - gdc, 7 + ldc, 8 8 libGL, 9 9 SDL, 10 10 SDL_mixer, ··· 16 16 patchname: hash: 17 17 fetchpatch { 18 18 name = "${patchname}.patch"; 19 - url = "https://sources.debian.org/data/main/t/tumiki-fighters/0.2.dfsg1-9/debian/patches/${patchname}.patch"; 19 + url = "https://sources.debian.org/data/main/t/tumiki-fighters/0.2.dfsg1-10/debian/patches/${patchname}.patch"; 20 20 sha256 = hash; 21 21 }; 22 22 ··· 42 42 (debianPatch "window-resizing" "1dm79d0yisa8zs5fr89y3wq2kzd3khcaxs0la8lhncvkqbd4smx8") 43 43 (debianPatch "dlang_v2" "1isnvbl3bjnpyphji8k3fl0yd1z4869h0lai143vpwgj6518lpg4") 44 44 (debianPatch "gdc-8" "1md0zwmv50jnak5g9d93bglv9v4z41blinjii6kv3vmgjnajapzj") 45 + (debianPatch "gcc12" "sha256-3ZFsI2Q4zCT591qCOu2iT2edE52DfO2pUySnMMBhNIQ=") 45 46 ]; 46 47 47 48 postPatch = '' ··· 57 58 substituteInPlace $f \ 58 59 --replace "/usr/" "$out/" 59 60 done 61 + # GDC → DMD/LDC flag compatibility 62 + substituteInPlace Makefile \ 63 + --replace-fail "-o " -of= \ 64 + --replace-fail -Wno-deprecated "" \ 65 + --replace-fail -l -L-l 60 66 ''; 61 67 62 68 nativeBuildInputs = [ 63 69 unzip 64 - gdc 70 + ldc 65 71 ]; 66 72 67 73 buildInputs = [ ··· 70 76 SDL_mixer 71 77 bulletml 72 78 ]; 79 + 80 + makeFlags = [ "GDC=ldc2" ]; 73 81 74 82 installPhase = '' 75 83 install -Dm755 tumiki-fighters $out/bin/tumiki-fighters