petidomo: unbreak on gcc 14, modernize (#396076)

authored by Arne Keller and committed by GitHub 0e018dfe 498ba051

+11 -4
+11 -4
pkgs/by-name/pe/petidomo/package.nix
··· 5 flex, 6 bison, 7 sendmailPath ? "/run/wrappers/bin/sendmail", 8 }: 9 10 - stdenv.mkDerivation rec { 11 pname = "petidomo"; 12 version = "4.3"; 13 14 src = fetchurl { 15 - url = "mirror://sourceforge/petidomo/${pname}-${version}.tar.gz"; 16 - sha256 = "0x4dbxc4fcfg1rw5ywpcypvylnzn3y4rh0m6fz4h4cdnzb8p1lvm"; 17 }; 18 19 buildInputs = [ ··· 23 24 configureFlags = [ "--with-mta=${sendmailPath}" ]; 25 26 enableParallelBuilding = true; 27 28 doCheck = true; 29 30 meta = { 31 homepage = "https://petidomo.sourceforge.net/"; ··· 35 platforms = lib.platforms.unix; 36 maintainers = [ lib.maintainers.peti ]; 37 }; 38 - }
··· 5 flex, 6 bison, 7 sendmailPath ? "/run/wrappers/bin/sendmail", 8 + versionCheckHook, 9 }: 10 11 + stdenv.mkDerivation (finalAttrs: { 12 pname = "petidomo"; 13 version = "4.3"; 14 15 src = fetchurl { 16 + url = "mirror://sourceforge/petidomo/petidomo-${finalAttrs.version}.tar.gz"; 17 + hash = "sha256-ddNw0fq2MQLJd6YCmIkf9lvq9/Xscl94Ds8xR1hfjXQ="; 18 }; 19 20 buildInputs = [ ··· 24 25 configureFlags = [ "--with-mta=${sendmailPath}" ]; 26 27 + # test.c:43:11: error: implicit declaration of function 'gets'; did you mean 'fgets'? 28 + env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration"; 29 + 30 enableParallelBuilding = true; 31 32 doCheck = true; 33 + 34 + doInstallCheck = true; 35 + nativeInstallCheck = [ versionCheckHook ]; 36 37 meta = { 38 homepage = "https://petidomo.sourceforge.net/"; ··· 42 platforms = lib.platforms.unix; 43 maintainers = [ lib.maintainers.peti ]; 44 }; 45 + })