dlx: unbreak, modernize

Upstream is abandoned, but this is pretty trivial to fix.
Breakage caused by upgrade to GCC 14: see #388196

Part of ZHF #403336

pluie.me 4c05d5aa 7ab4561d

verified
+13 -10
+13 -10
pkgs/by-name/dl/dlx/package.nix
··· 6 7 stdenv.mkDerivation { 8 pname = "dlx"; 9 - version = "2012-07-08"; 10 11 src = fetchzip { 12 url = "https://www.davidviner.com/zip/dlx/dlx.zip"; 13 - sha256 = "0508linnar9ivy3xr99gzrb2l027ngx12dlxaxs7w67cnwqnb0dg"; 14 }; 15 16 - makeFlags = [ 17 - "CC=${stdenv.cc.targetPrefix}cc" 18 - "LINK=${stdenv.cc.targetPrefix}cc" 19 - "CFLAGS=-O2" 20 - ]; 21 hardeningDisable = [ "format" ]; 22 23 installPhase = '' ··· 28 mv README.txt MANUAL.TXT $out/share/dlx/doc/ 29 ''; 30 31 - meta = with lib; { 32 homepage = "https://www.davidviner.com/dlx.html?name=DLX+Simulator"; 33 description = "DLX simulator written in C"; 34 - license = licenses.gpl2Only; 35 - platforms = platforms.linux; 36 }; 37 }
··· 6 7 stdenv.mkDerivation { 8 pname = "dlx"; 9 + version = "0-unstable-2012-07-08"; 10 11 src = fetchzip { 12 url = "https://www.davidviner.com/zip/dlx/dlx.zip"; 13 + hash = "sha256-r4FlMbfsGH50V502EfqzRwAqVv4vpdyH3zFlZW2kCBQ="; 14 }; 15 16 + preBuild = '' 17 + makeFlagsArray+=( 18 + CC="${stdenv.cc.targetPrefix}cc" 19 + LINK="${stdenv.cc.targetPrefix}cc" 20 + CFLAGS="-O2 -Wno-implicit-function-declaration" 21 + ) 22 + ''; 23 + 24 hardeningDisable = [ "format" ]; 25 26 installPhase = '' ··· 31 mv README.txt MANUAL.TXT $out/share/dlx/doc/ 32 ''; 33 34 + meta = { 35 homepage = "https://www.davidviner.com/dlx.html?name=DLX+Simulator"; 36 description = "DLX simulator written in C"; 37 + license = lib.licenses.gpl2Only; 38 + platforms = lib.platforms.linux; 39 }; 40 }