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 5 flex, 6 6 bison, 7 7 sendmailPath ? "/run/wrappers/bin/sendmail", 8 + versionCheckHook, 8 9 }: 9 10 10 - stdenv.mkDerivation rec { 11 + stdenv.mkDerivation (finalAttrs: { 11 12 pname = "petidomo"; 12 13 version = "4.3"; 13 14 14 15 src = fetchurl { 15 - url = "mirror://sourceforge/petidomo/${pname}-${version}.tar.gz"; 16 - sha256 = "0x4dbxc4fcfg1rw5ywpcypvylnzn3y4rh0m6fz4h4cdnzb8p1lvm"; 16 + url = "mirror://sourceforge/petidomo/petidomo-${finalAttrs.version}.tar.gz"; 17 + hash = "sha256-ddNw0fq2MQLJd6YCmIkf9lvq9/Xscl94Ds8xR1hfjXQ="; 17 18 }; 18 19 19 20 buildInputs = [ ··· 23 24 24 25 configureFlags = [ "--with-mta=${sendmailPath}" ]; 25 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 + 26 30 enableParallelBuilding = true; 27 31 28 32 doCheck = true; 33 + 34 + doInstallCheck = true; 35 + nativeInstallCheck = [ versionCheckHook ]; 29 36 30 37 meta = { 31 38 homepage = "https://petidomo.sourceforge.net/"; ··· 35 42 platforms = lib.platforms.unix; 36 43 maintainers = [ lib.maintainers.peti ]; 37 44 }; 38 - } 45 + })