pesign: modernize

- replace `rec` with `finalAttrs`
- remove `with lib;` from `meta`
- replace `rev` with `tag` in `src`
This commit is contained in:
ghpzin 2025-04-01 12:11:46 +03:00
parent f29bdc105c
commit 34dbfa4281

View File

@ -12,14 +12,14 @@
mandoc, mandoc,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "pesign"; pname = "pesign";
version = "116"; version = "116";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rhboot"; owner = "rhboot";
repo = "pesign"; repo = "pesign";
rev = version; tag = finalAttrs.version;
hash = "sha256-cuOSD/ZHkilgguDFJviIZCG8kceRWw2JgssQuWN02Do="; hash = "sha256-cuOSD/ZHkilgguDFJviIZCG8kceRWw2JgssQuWN02Do=";
}; };
@ -59,12 +59,12 @@ stdenv.mkDerivation rec {
rm -rf $out/run rm -rf $out/run
''; '';
meta = with lib; { meta = {
description = "Signing tools for PE-COFF binaries. Compliant with the PE and Authenticode specifications"; description = "Signing tools for PE-COFF binaries. Compliant with the PE and Authenticode specifications";
homepage = "https://github.com/rhboot/pesign"; homepage = "https://github.com/rhboot/pesign";
license = licenses.gpl2Only; license = lib.licenses.gpl2Only;
maintainers = with maintainers; [ raitobezarius ]; maintainers = with lib.maintainers; [ raitobezarius ];
# efivar is currently Linux-only. # efivar is currently Linux-only.
platforms = platforms.linux; platforms = lib.platforms.linux;
}; };
} })