lol

Merge pull request #256720 from RaitoBezarius/pesign

pesign: init at 116

authored by

Weijia Wang and committed by
GitHub
cfe55e04 bba54c49

+52
+52
pkgs/by-name/pe/pesign/package.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , pkg-config 5 + , nss 6 + , efivar 7 + , util-linux 8 + , popt 9 + , nspr 10 + , mandoc 11 + }: 12 + 13 + stdenv.mkDerivation rec { 14 + pname = "pesign"; 15 + version = "116"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "rhboot"; 19 + repo = "pesign"; 20 + rev = version; 21 + hash = "sha256-cuOSD/ZHkilgguDFJviIZCG8kceRWw2JgssQuWN02Do="; 22 + }; 23 + 24 + # nss-util is missing because it is already contained in nss 25 + # Red Hat seems to be shipping a separate nss-util: 26 + # https://centos.pkgs.org/7/centos-x86_64/nss-util-devel-3.44.0-4.el7_7.x86_64.rpm.html 27 + # containing things we already have in `nss`. 28 + # We can ignore all the errors pertaining to a missing 29 + # nss-util.pc I suppose. 30 + buildInputs = [ efivar util-linux nss popt nspr mandoc ]; 31 + nativeBuildInputs = [ pkg-config ]; 32 + 33 + makeFlags = [ "INSTALLROOT=$(out)" ]; 34 + 35 + postInstall = '' 36 + mv $out/usr/bin $out/bin 37 + mv $out/usr/share $out/share 38 + 39 + rm -rf $out/usr 40 + rm -rf $out/etc 41 + rm -rf $out/run 42 + ''; 43 + 44 + meta = with lib; { 45 + description = "Signing tools for PE-COFF binaries. Compliant with the PE and Authenticode specifications."; 46 + homepage = "https://github.com/rhboot/pesign"; 47 + license = licenses.gpl2Only; 48 + maintainers = with maintainers; [ raitobezarius ]; 49 + # efivar is currently Linux-only. 50 + platforms = platforms.linux; 51 + }; 52 + }