nixpkgs/pkgs/tools/system/efivar/default.nix

35 lines
770 B
Nix
Raw Normal View History

2015-06-19 06:03:00 +01:00
{ stdenv, fetchFromGitHub, popt }:
2014-06-11 00:13:28 +01:00
stdenv.mkDerivation rec {
name = "efivar-${version}";
2015-07-17 04:06:50 +01:00
version = "0.21";
2014-06-11 00:13:28 +01:00
2015-06-19 06:03:00 +01:00
src = fetchFromGitHub {
owner = "rhinstaller";
repo = "efivar";
rev = version;
2015-07-17 04:06:50 +01:00
sha256 = "0iakv8prvl61mb2wnll02sxlg3kfzh3d4qb41d0bklmnljjkqr8p";
2014-06-11 00:13:28 +01:00
};
buildInputs = [ popt ];
2015-07-17 04:06:50 +01:00
# 0.21 Has build warnings so disable -Werror
postPatch = ''
sed -i 's,-Werror,,g' Make.defaults
'';
2015-06-19 06:34:29 +01:00
2014-06-11 00:13:28 +01:00
installFlags = [
"libdir=$(out)/lib"
"mandir=$(out)/share/man"
"includedir=$(out)/include"
"bindir=$(out)/bin"
];
meta = with stdenv.lib; {
homepage = http://github.com/vathpela/efivar;
description = "Tools and library to manipulate EFI variables";
platforms = platforms.linux;
license = licenses.lgpl21;
};
}