about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/analysis/uefi-firmware-parser/default.nix
blob: b879a6ef2374f295cf3c24424ee06b85679162ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, python3, fetchFromGitHub }:

with python3.pkgs;

buildPythonApplication rec {
  pname = "uefi-firmware-parser";
  version = "1.8";

  # Version 1.8 is not published on pypi
  src = fetchFromGitHub {
    owner = "theopolis";
    repo = "uefi-firmware-parser";
    rev = "v${version}";
    sha256 = "1yn9vi91j1yxkn0icdnjhgl0qrqqkzyhccj39af4f19q1gdw995l";
  };

  meta = with lib; {
    homepage = "https://github.com/theopolis/uefi-firmware-parser/";
    description = "Parse BIOS/Intel ME/UEFI firmware related structures: Volumes, FileSystems, Files, etc";
    # MIT + license headers in some files
    license = with licenses; [
      mit
      zlib         # uefi_firmware/me.py
      bsd2         # uefi_firmware/compression/Tiano/**/*
      publicDomain # uefi_firmware/compression/LZMA/SDK/C/*
    ];
    platforms = [ "x86_64-linux" "aarch64-linux" ];
    maintainers = [ maintainers.samueldr ];
  };
}