pesign: fix build with gcc14, modernize (#395125)

authored by Aleksana and committed by GitHub 82dc8376 9756c0de

+17 -7
+17 -7
pkgs/by-name/pe/pesign/package.nix
··· 2 2 lib, 3 3 stdenv, 4 4 fetchFromGitHub, 5 + fetchpatch2, 5 6 pkg-config, 6 7 nss, 7 8 efivar, ··· 11 12 mandoc, 12 13 }: 13 14 14 - stdenv.mkDerivation rec { 15 + stdenv.mkDerivation (finalAttrs: { 15 16 pname = "pesign"; 16 17 version = "116"; 17 18 18 19 src = fetchFromGitHub { 19 20 owner = "rhboot"; 20 21 repo = "pesign"; 21 - rev = version; 22 + tag = finalAttrs.version; 22 23 hash = "sha256-cuOSD/ZHkilgguDFJviIZCG8kceRWw2JgssQuWN02Do="; 23 24 }; 24 25 26 + patches = [ 27 + # fix build with gcc14 28 + # https://github.com/rhboot/pesign/pull/119 29 + (fetchpatch2 { 30 + url = "https://github.com/rhboot/pesign/commit/1f9e2fa0b4d872fdd01ca3ba81b04dfb1211a187.patch?full_index=1"; 31 + hash = "sha256-viVM4Z0jAEAWC3EdJVHcWe21aQskH5XE85lOd6Xd/qU="; 32 + }) 33 + ]; 34 + 25 35 # nss-util is missing because it is already contained in nss 26 36 # Red Hat seems to be shipping a separate nss-util: 27 37 # https://centos.pkgs.org/7/centos-x86_64/nss-util-devel-3.44.0-4.el7_7.x86_64.rpm.html ··· 49 59 rm -rf $out/run 50 60 ''; 51 61 52 - meta = with lib; { 62 + meta = { 53 63 description = "Signing tools for PE-COFF binaries. Compliant with the PE and Authenticode specifications"; 54 64 homepage = "https://github.com/rhboot/pesign"; 55 - license = licenses.gpl2Only; 56 - maintainers = with maintainers; [ raitobezarius ]; 65 + license = lib.licenses.gpl2Only; 66 + maintainers = with lib.maintainers; [ raitobezarius ]; 57 67 # efivar is currently Linux-only. 58 - platforms = platforms.linux; 68 + platforms = lib.platforms.linux; 59 69 }; 60 - } 70 + })