Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

efitools: init at 1.9.2 #54471

Merged
merged 1 commit into from Jan 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 39 additions & 0 deletions 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

help2man and probably perl should be nativeBuildInputs

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed up!

];

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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -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 { };
Expand Down