nixpkgs-suyu/pkgs/tools/system/efivar/default.nix
Tobias Geerinckx-Rice 95aab50e81
efivar: 0.21 -> 0.23
2016-05-03 03:50:13 +02:00

34 lines
773 B
Nix

{ stdenv, fetchFromGitHub, pkgconfig, popt }:
stdenv.mkDerivation rec {
name = "efivar-${version}";
version = "0.23";
src = fetchFromGitHub {
owner = "rhinstaller";
repo = "efivar";
rev = version;
sha256 = "1fdqi053v335pjwj1i3yi9f1kasdzg3agfcp36bxsbhqjp4imlid";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ popt ];
postPatch = ''
substituteInPlace src/Makefile --replace "-static" ""
'';
installFlags = [
"libdir=$(out)/lib"
"mandir=$(out)/share/man"
"includedir=$(out)/include"
"bindir=$(out)/bin"
];
meta = with stdenv.lib; {
inherit (src.meta) homepage;
description = "Tools and library to manipulate EFI variables";
platforms = platforms.linux;
license = licenses.lgpl21;
};
}