at 24.11-pre 47 lines 1.4 kB view raw
1{ lib, stdenv 2, fetchgit, autoconf, automake, pkg-config, help2man 3, openssl, libuuid, gnu-efi, libbfd 4}: 5 6stdenv.mkDerivation rec { 7 pname = "sbsigntool"; 8 version = "0.9.5"; 9 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 }; 15 16 patches = [ ./autoconf.patch ]; 17 18 prePatch = "patchShebangs ."; 19 20 nativeBuildInputs = [ autoconf automake pkg-config help2man ]; 21 buildInputs = [ openssl libuuid libbfd gnu-efi ]; 22 23 configurePhase = '' 24 substituteInPlace configure.ac --replace "@@NIX_GNUEFI@@" "${gnu-efi}" 25 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 29 30 echo "SUBDIRS = lib/ccan src docs" >> Makefile.am 31 32 aclocal 33 autoheader 34 autoconf 35 automake --add-missing -Wno-portability 36 37 ./configure --prefix=$out 38 ''; 39 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 }; 47}