convertlit: fix build with GCC 14

uku e15818df b05094bf

+13 -7
+13 -7
pkgs/by-name/co/convertlit/package.nix
··· 5 libtommath, 6 }: 7 8 - stdenv.mkDerivation rec { 9 pname = "convertlit"; 10 version = "1.8"; 11 12 src = fetchzip { 13 - url = "http://www.convertlit.com/convertlit${lib.replaceStrings [ "." ] [ "" ] version}src.zip"; 14 sha256 = "182nsin7qscgbw2h92m0zadh3h8q410h5cza6v486yjfvla3dxjx"; 15 stripRoot = false; 16 }; ··· 19 20 hardeningDisable = [ "format" ]; 21 22 buildPhase = '' 23 cd lib 24 make 25 cd ../clit18 26 - substituteInPlace Makefile \ 27 - --replace ../libtommath-0.30/libtommath.a -ltommath 28 make 29 ''; 30 31 installPhase = '' 32 - mkdir -p $out/bin 33 - cp clit $out/bin 34 ''; 35 36 meta = { ··· 40 license = lib.licenses.gpl2Plus; 41 platforms = lib.platforms.linux; 42 }; 43 - }
··· 5 libtommath, 6 }: 7 8 + stdenv.mkDerivation (finalAttrs: { 9 pname = "convertlit"; 10 version = "1.8"; 11 12 src = fetchzip { 13 + url = "http://www.convertlit.com/convertlit${ 14 + lib.replaceStrings [ "." ] [ "" ] finalAttrs.version 15 + }src.zip"; 16 sha256 = "182nsin7qscgbw2h92m0zadh3h8q410h5cza6v486yjfvla3dxjx"; 17 stripRoot = false; 18 }; ··· 21 22 hardeningDisable = [ "format" ]; 23 24 + env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 25 + 26 + postPatch = '' 27 + substituteInPlace clit18/Makefile --replace gcc \$\(CC\) 28 + substituteInPlace clit18/Makefile --replace ../libtommath-0.30/libtommath.a -ltommath 29 + ''; 30 + 31 buildPhase = '' 32 cd lib 33 make 34 cd ../clit18 35 make 36 ''; 37 38 installPhase = '' 39 + install -Dm755 clit $out/bin/clit 40 ''; 41 42 meta = { ··· 46 license = lib.licenses.gpl2Plus; 47 platforms = lib.platforms.linux; 48 }; 49 + })