lol

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