at v206 49 lines 1.3 kB view raw
1{ stdenv, fetchgit, autoconf, automake, utillinux, openssl, libuuid, gnu-efi 2, binutils, pkgconfig, help2man }: 3 4stdenv.mkDerivation rec { 5 name = "sbsigntool-${version}"; 6 version = "0.5"; 7 8 src = fetchgit { 9 url = "git://kernel.ubuntu.com/jk/sbsigntool"; 10 rev = "951ee95a301674c046f55330cd7460e1314deff2"; 11 sha256 = "09k8by0qq8j7ff812l1l9z9frsx5c4cmhj5in3g1sgyz3v55nfy7"; 12 }; 13 14 patches = [ ./autoconf.patch ]; 15 16 prePatch = "patchShebangs ."; 17 18 buildInputs = [ autoconf automake utillinux openssl libuuid gnu-efi binutils pkgconfig help2man ]; 19 20 configurePhase = '' 21 substituteInPlace configure.ac --replace "@@NIX_GNUEFI@@" "${gnu-efi}" 22 23 lib/ccan.git/tools/create-ccan-tree --build-type=automake lib/ccan "talloc read_write_all build_assert array_size" 24 touch AUTHORS 25 touch ChangeLog 26 27 echo "SUBDIRS = lib/ccan src docs" >> Makefile.am 28 29 aclocal 30 autoheader 31 autoconf 32 automake --add-missing -Wno-portability 33 34 ./configure --prefix=$out 35 ''; 36 37 installPhase = '' 38 mkdir -p $out 39 make install 40 ''; 41 42 meta = with stdenv.lib; { 43 description = "Tools for maintaining UEFI signature databases"; 44 homepage = http://jk.ozlabs.org/docs/sbkeysync-maintaing-uefi-key-databases; 45 maintainers = [ maintainers.tstrobel ]; 46 platforms = [ "x86_64-linux" ]; # Broken on i686 47 }; 48} 49