diff options
author | Graham Christensen <graham@grahamc.com> | 2019-01-22 09:55:38 -0500 |
---|---|---|
committer | Graham Christensen <graham@grahamc.com> | 2019-01-22 10:23:50 -0500 |
commit | 2707a6d4811d782c17227ca372ca6d116d5a5ee3 (patch) | |
tree | c5027797e395b909289a1a72652aaf62c7a3736f /pkgs/tools/security/efitools | |
parent | b7d4a356be49501ea046b28db28dc2807f5fccdb (diff) |
efitools: init at 1.9.2
Diffstat (limited to 'pkgs/tools/security/efitools')
-rw-r--r-- | pkgs/tools/security/efitools/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/security/efitools/default.nix b/pkgs/tools/security/efitools/default.nix new file mode 100644 index 0000000000000..1d983cb8599aa --- /dev/null +++ b/pkgs/tools/security/efitools/default.nix @@ -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; + }; +} |