convertlit: fix build with GCC 14

uku e15818df b05094bf

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