nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 }; ··· 21 19 22 20 hardeningDisable = [ "format" ]; 23 21 22 + env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 23 + 24 + postPatch = '' 25 + substituteInPlace clit18/Makefile --replace gcc \$\(CC\) 26 + substituteInPlace clit18/Makefile --replace ../libtommath-0.30/libtommath.a -ltommath 27 + ''; 28 + 24 29 buildPhase = '' 25 30 cd lib 26 31 make 27 32 cd ../clit18 28 - substituteInPlace Makefile \ 29 - --replace ../libtommath-0.30/libtommath.a -ltommath 30 33 make 31 34 ''; 32 35 33 36 installPhase = '' 34 - mkdir -p $out/bin 35 - cp clit $out/bin 37 + install -Dm755 clit $out/bin/clit 36 38 ''; 37 39 38 40 meta = { ··· 46 40 license = lib.licenses.gpl2Plus; 47 41 platforms = lib.platforms.linux; 48 42 }; 49 - } 43 + })