base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / sb / sbsigntool / package.nix
blob4422dd16b474d72874a98b380db1f5e1ca3c14bb
1 { lib, stdenv
2 , fetchgit, autoconf, automake, pkg-config, help2man
3 , openssl, libuuid, gnu-efi, libbfd
4 }:
6 stdenv.mkDerivation rec {
7   pname = "sbsigntool";
8   version = "0.9.5";
10   src = fetchgit {
11     url = "https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git";
12     rev = "v${version}";
13     hash = "sha256-5DInWgl1gThjjfGOsts1H1s1GbMCkd0gjbmG3gA3Fhg=";
14   };
16   patches = [ ./autoconf.patch ];
18   prePatch = "patchShebangs .";
20   nativeBuildInputs = [ autoconf automake pkg-config help2man ];
21   buildInputs = [ openssl libuuid libbfd gnu-efi ];
23   configurePhase = ''
24     substituteInPlace configure.ac --replace "@@NIX_GNUEFI@@" "${gnu-efi}"
26     lib/ccan.git/tools/create-ccan-tree --build-type=automake lib/ccan "talloc read_write_all build_assert array_size endian"
27     touch AUTHORS
28     touch ChangeLog
30     echo "SUBDIRS = lib/ccan src docs" >> Makefile.am
32     aclocal
33     autoheader
34     autoconf
35     automake --add-missing -Wno-portability
37     ./configure --prefix=$out
38   '';
40   meta = with lib; {
41     description = "Tools for maintaining UEFI signature databases";
42     homepage    = "http://jk.ozlabs.org/docs/sbkeysync-maintaing-uefi-key-databases";
43     maintainers = with maintainers; [ hmenke raitobezarius ];
44     platforms   = [ "x86_64-linux" "aarch64-linux" ]; # Broken on i686
45     license     = licenses.gpl3;
46   };