uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/tools/security/efitools/default.nix
Normal file
40
pkgs/tools/security/efitools/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, gnu-efi, openssl, sbsigntool, perl, perlPackages,
|
||||
help2man, fetchgit }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "efitools";
|
||||
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
|
||||
substituteInPlace lib/console.c --replace "EFI_WARN_UNKOWN_GLYPH" "EFI_WARN_UNKNOWN_GLYPH"
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
meta = with 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue