3
0
Fork 0
forked from mirrors/nixpkgs

efivar: fix build against linux 4.4 headers

This commit is contained in:
Joachim Fasting 2016-05-15 19:39:18 +02:00
parent 0a8d1627ec
commit a11b0bc515
No known key found for this signature in database
GPG key ID: 4330820E1E04DCF4

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, popt }:
{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, popt }:
stdenv.mkDerivation rec {
name = "efivar-${version}";
@ -11,6 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "1fdqi053v335pjwj1i3yi9f1kasdzg3agfcp36bxsbhqjp4imlid";
};
patches = [
# fix problem with linux 4.4 headers https://github.com/rhinstaller/efivar/issues/37
(fetchurl {
url = https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-libs/efivar/files/0.21-nvme_ioctl.h.patch;
sha256 = "1rjjpd4s1xdsnhq974j5wnwav8pfvd0jbvhk8a9wc2w029fvj7zp";
})
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ popt ];