3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/efivar/default.nix

36 lines
843 B
Nix
Raw Normal View History

2018-11-28 12:06:23 +00:00
{ stdenv, buildPackages, fetchFromGitHub, pkgconfig, popt }:
2014-06-11 00:13:28 +01:00
stdenv.mkDerivation rec {
name = "efivar-${version}";
version = "36";
2014-06-11 00:13:28 +01:00
2018-05-23 17:28:14 +01:00
outputs = [ "bin" "out" "dev" "man" ];
2015-06-19 06:03:00 +01:00
src = fetchFromGitHub {
owner = "rhinstaller";
repo = "efivar";
rev = version;
sha256 = "0r39kx6sqgpk8rz19g1sil4dp7r82d5g1wlkbw1czwas95s50y7n";
2014-06-11 00:13:28 +01:00
};
2016-05-03 02:50:13 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ popt ];
2018-11-28 12:06:23 +00:00
depsBuildBuild = [ buildPackages.stdenv.cc ];
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"
2018-05-23 17:28:14 +01:00
"bindir=$(bin)/bin"
"mandir=$(man)/share/man"
"includedir=$(dev)/include"
"PCDIR=$(dev)/lib/pkgconfig"
2014-06-11 00:13:28 +01:00
];
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;
};
}