2018-11-28 12:06:23 +00:00
|
|
|
{ stdenv, buildPackages, fetchFromGitHub, pkgconfig, popt }:
|
2014-06-10 23:13:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "efivar-${version}";
|
2018-12-16 07:57:16 +00:00
|
|
|
version = "37";
|
2014-06-10 23:13:28 +00:00
|
|
|
|
2018-05-23 16:28:14 +00:00
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
|
|
|
|
2015-06-19 05:03:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhinstaller";
|
|
|
|
repo = "efivar";
|
|
|
|
rev = version;
|
2018-12-16 07:57:16 +00:00
|
|
|
sha256 = "1z2dw5x74wgvqgd8jvibfff0qhwkc53kxg54v12pzymyibagwf09";
|
2014-06-10 23:13:28 +00:00
|
|
|
};
|
|
|
|
|
2016-05-03 01:50:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-05-15 17:30:39 +00:00
|
|
|
buildInputs = [ popt ];
|
2018-11-28 12:06:23 +00:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
2014-06-10 23:13:28 +00:00
|
|
|
|
2017-12-17 08:08:05 +00:00
|
|
|
makeFlags = [
|
|
|
|
"prefix=$(out)"
|
2014-06-10 23:13:28 +00:00
|
|
|
"libdir=$(out)/lib"
|
2018-05-23 16:28:14 +00:00
|
|
|
"bindir=$(bin)/bin"
|
|
|
|
"mandir=$(man)/share/man"
|
|
|
|
"includedir=$(dev)/include"
|
|
|
|
"PCDIR=$(dev)/lib/pkgconfig"
|
2014-06-10 23:13:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-05-03 01:50:13 +00:00
|
|
|
inherit (src.meta) homepage;
|
2014-06-10 23:13:28 +00:00
|
|
|
description = "Tools and library to manipulate EFI variables";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
|
|
|
}
|