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}";
|
2018-06-24 19:18:21 +02:00
|
|
|
version = "36";
|
2014-06-11 01:13:28 +02:00
|
|
|
|
2018-05-23 18:28:14 +02:00
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
|
|
|
|
2015-06-19 07:03:00 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhinstaller";
|
|
|
|
repo = "efivar";
|
|
|
|
rev = version;
|
2018-06-24 19:18:21 +02:00
|
|
|
sha256 = "0r39kx6sqgpk8rz19g1sil4dp7r82d5g1wlkbw1czwas95s50y7n";
|
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
|
|
|
|
2017-12-17 09:08:05 +01:00
|
|
|
makeFlags = [
|
|
|
|
"prefix=$(out)"
|
2014-06-11 01:13:28 +02:00
|
|
|
"libdir=$(out)/lib"
|
2018-05-23 18:28:14 +02:00
|
|
|
"bindir=$(bin)/bin"
|
|
|
|
"mandir=$(man)/share/man"
|
|
|
|
"includedir=$(dev)/include"
|
|
|
|
"PCDIR=$(dev)/lib/pkgconfig"
|
2014-06-11 01:13:28 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|