From 31e8b5268ff3a295318d08e564ec25926b304fa4 Mon Sep 17 00:00:00 2001 From: KSJ2000 Date: Fri, 1 Nov 2024 15:09:07 +0200 Subject: [PATCH] uefi-firmware-parser: init at 1.12 --- .../ue/uefi-firmware-parser/package.nix | 37 +++++++++++++++++++ pkgs/top-level/aliases.nix | 1 - 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 pkgs/by-name/ue/uefi-firmware-parser/package.nix diff --git a/pkgs/by-name/ue/uefi-firmware-parser/package.nix b/pkgs/by-name/ue/uefi-firmware-parser/package.nix new file mode 100644 index 0000000000000..8b726e9a95470 --- /dev/null +++ b/pkgs/by-name/ue/uefi-firmware-parser/package.nix @@ -0,0 +1,37 @@ +{ + fetchFromGitHub, + lib, + nix-update-script, + python3, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "uefi-firmware-parser"; + version = "1.12"; + pyproject = true; + + src = fetchFromGitHub { + owner = "theopolis"; + repo = "uefi-firmware-parser"; + rev = "v${version}"; + hash = "sha256-Yiw9idmvSpx4CcVrXHznR8vK/xl7DTL+L7k4Nvql2B8="; + }; + + build-system = [ + python3.pkgs.setuptools + python3.pkgs.wheel + ]; + + dependencies = [ python3.pkgs.future ]; + + pythonImportsCheck = [ "uefi_firmware" ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Tool for parsing, extracting, and recreating UEFI firmware volumes"; + homepage = "https://github.com/theopolis/uefi-firmware-parser"; + license = lib.licenses.mit; + mainProgram = "uefi-firmware-parser"; + }; +} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 394335eaee143..c1d81d0db042f 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1213,7 +1213,6 @@ mapAliases { ubuntu_font_family = ubuntu-classic; # Added 2024-02-19 uclibc = uclibc-ng; # Added 2022-06-16 uclibcCross = uclibc-ng; # Added 2022-06-16 - uefi-firmware-parser = throw "The uefi-firmware-parser package was dropped since it was unmaintained."; # Added 2024-06-21 unicorn-emu = throw "'unicorn-emu' has been renamed to/replaced by 'unicorn'"; # Converted to throw 2024-10-17 uniffi-bindgen = throw "uniffi-bindgen has been removed since upstream no longer provides a standalone package for the CLI"; unifi-poller = unpoller; # Added 2022-11-24