3
0
Fork 0
forked from mirrors/nixpkgs

efivar: fix build after #15449

I don't know why it matters here; the error was:
linux.c:25:24: fatal error: linux/nvme.h: No such file or directory
This commit is contained in:
Vladimír Čunát 2016-05-15 18:17:28 +02:00
parent 49cf9b902a
commit 21d09bcb71
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pkgconfig, popt }:
{ stdenv, fetchFromGitHub, pkgconfig, popt, linuxHeaders }:
stdenv.mkDerivation rec {
name = "efivar-${version}";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ popt ];
buildInputs = [ popt linuxHeaders ];
postPatch = ''
substituteInPlace src/Makefile --replace "-static" ""

View file

@ -1398,7 +1398,9 @@ in
efibootmgr = callPackage ../tools/system/efibootmgr { };
efivar = callPackage ../tools/system/efivar { };
efivar = callPackage ../tools/system/efivar {
linuxHeaders = linuxHeaders_3_18;
};
evemu = callPackage ../tools/system/evemu { };