1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00

efitools: init at 1.9.2

This commit is contained in:
Graham Christensen 2019-01-22 09:55:38 -05:00
parent b7d4a356be
commit 2707a6d481
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ stdenv, gnu-efi, openssl, sbsigntool, perl, perlPackages,
help2man, fetchgit }:
stdenv.mkDerivation rec {
name = "efitools-${version}";
version = "1.9.2";
buildInputs = [
gnu-efi
openssl
sbsigntool
];
nativeBuildInputs = [
perl
perlPackages.FileSlurp
help2man
];
src = fetchgit {
url = "git://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git";
rev = "v${version}";
sha256 = "0jabgl2pxvfl780yvghq131ylpf82k7banjz0ksjhlm66ik8gb1i";
};
postPatch = ''
sed -i -e 's#/usr/include/efi#${gnu-efi}/include/efi/#g' Make.rules
sed -i -e 's#/usr/lib64/gnuefi#${gnu-efi}/lib/#g' Make.rules
sed -i -e 's#$(DESTDIR)/usr#$(out)#g' Make.rules
patchShebangs .
'';
meta = with stdenv.lib; {
description = "Tools for manipulating UEFI secure boot platforms";
homepage = "https://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git";
license = licenses.gpl2;
maintainers = [ maintainers.grahamc ];
platforms = platforms.linux;
};
}

View file

@ -3154,6 +3154,8 @@ in
gx = callPackage ../tools/package-management/gx { };
gx-go = callPackage ../tools/package-management/gx/go { };
efitools = callPackage ../tools/security/efitools { };
sbsigntool = callPackage ../tools/security/sbsigntool { };
gsmartcontrol = callPackage ../tools/misc/gsmartcontrol { };