2016-08-20 16:04:56 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, popt }:
|
2014-06-11 01:13:28 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "efivar-${version}";
|
2017-05-02 18:50:30 +02:00
|
|
|
version = "30";
|
2014-06-11 01:13:28 +02:00
|
|
|
|
2015-06-19 07:03:00 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhinstaller";
|
|
|
|
repo = "efivar";
|
|
|
|
rev = version;
|
2017-05-02 18:50:30 +02:00
|
|
|
sha256 = "1pghj019qr7qpqd9rxfhsr1hm3s0w1hd5cdndpl07vhys8hy4a8a";
|
2014-06-11 01:13:28 +02:00
|
|
|
};
|
|
|
|
|
2016-05-03 03:50:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-05-15 19:30:39 +02:00
|
|
|
buildInputs = [ popt ];
|
2014-06-11 01:13:28 +02:00
|
|
|
|
2015-07-17 05:06:50 +02:00
|
|
|
postPatch = ''
|
2016-05-03 03:50:13 +02:00
|
|
|
substituteInPlace src/Makefile --replace "-static" ""
|
2015-07-17 05:06:50 +02:00
|
|
|
'';
|
2015-06-19 07:34:29 +02:00
|
|
|
|
2014-06-11 01:13:28 +02:00
|
|
|
installFlags = [
|
|
|
|
"libdir=$(out)/lib"
|
|
|
|
"mandir=$(out)/share/man"
|
|
|
|
"includedir=$(out)/include"
|
|
|
|
"bindir=$(out)/bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-05-03 03:50:13 +02:00
|
|
|
inherit (src.meta) homepage;
|
2014-06-11 01:13:28 +02:00
|
|
|
description = "Tools and library to manipulate EFI variables";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
|
|
|
}
|