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