1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00
nixpkgs/pkgs/tools/system/efivar/default.nix

35 lines
771 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig, popt }:
2014-06-11 00:13:28 +01:00
stdenv.mkDerivation rec {
name = "efivar-${version}";
version = "30";
2014-06-11 00:13:28 +01:00
2015-06-19 06:03:00 +01:00
src = fetchFromGitHub {
owner = "rhinstaller";
repo = "efivar";
rev = version;
sha256 = "1pghj019qr7qpqd9rxfhsr1hm3s0w1hd5cdndpl07vhys8hy4a8a";
2014-06-11 00:13:28 +01:00
};
2016-05-03 02:50:13 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ popt ];
2014-06-11 00:13:28 +01:00
2015-07-17 04:06:50 +01:00
postPatch = ''
2016-05-03 02:50:13 +01:00
substituteInPlace src/Makefile --replace "-static" ""
2015-07-17 04:06:50 +01:00
'';
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; {
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;
};
}