nixpkgs/pkgs/tools/system/efivar/default.nix
William A. Kennington III 967abfc786 efivar: 0.20 -> 0.21
2015-07-16 20:07:17 -07:00

34 lines
770 B
Nix

{ stdenv, fetchFromGitHub, popt }:
stdenv.mkDerivation rec {
name = "efivar-${version}";
version = "0.21";
src = fetchFromGitHub {
owner = "rhinstaller";
repo = "efivar";
rev = version;
sha256 = "0iakv8prvl61mb2wnll02sxlg3kfzh3d4qb41d0bklmnljjkqr8p";
};
buildInputs = [ popt ];
# 0.21 Has build warnings so disable -Werror
postPatch = ''
sed -i 's,-Werror,,g' Make.defaults
'';
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;
};
}