2016-08-20 15:04:56 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, popt }:
|
2014-06-11 00:13:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "efivar-${version}";
|
2017-12-17 08:08:05 +00:00
|
|
|
version = "34";
|
2014-06-11 00:13:28 +01:00
|
|
|
|
2015-06-19 06:03:00 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhinstaller";
|
|
|
|
repo = "efivar";
|
|
|
|
rev = version;
|
2017-12-17 08:08:05 +00:00
|
|
|
sha256 = "0ycrdaz0ijkm3xb9fnwzhwi0pdj5c6s636wj4i6lbjbrijbzn4x5";
|
2014-06-11 00:13:28 +01:00
|
|
|
};
|
|
|
|
|
2016-05-03 02:50:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-05-15 18:30:39 +01:00
|
|
|
buildInputs = [ popt ];
|
2014-06-11 00:13:28 +01:00
|
|
|
|
2017-12-17 08:08:05 +00:00
|
|
|
makeFlags = [
|
|
|
|
"prefix=$(out)"
|
2014-06-11 00:13:28 +01:00
|
|
|
"libdir=$(out)/lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-05-03 02:50:13 +01:00
|
|
|
inherit (src.meta) homepage;
|
2014-06-11 00:13:28 +01:00
|
|
|
description = "Tools and library to manipulate EFI variables";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
|
|
|
}
|