forked from mirrors/nixpkgs
35 lines
770 B
Nix
35 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;
|
|
};
|
|
}
|