2022-11-13 01:47:14 +00:00
|
|
|
{ lib, stdenv, buildPackages, fetchFromGitHub, fetchpatch, pkg-config, popt, mandoc }:
|
2014-06-10 23:13:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "efivar";
|
2024-08-14 09:18:18 +00:00
|
|
|
version = "39";
|
2014-06-10 23:13:28 +00:00
|
|
|
|
2018-05-23 16:28:14 +00:00
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
|
|
|
|
2015-06-19 05:03:00 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-08-14 09:18:18 +00:00
|
|
|
owner = "rhboot";
|
2015-06-19 05:03:00 +00:00
|
|
|
repo = "efivar";
|
|
|
|
rev = version;
|
2024-08-14 09:18:18 +00:00
|
|
|
hash = "sha256-s/1k5a3n33iLmSpKQT5u08xoj8ypjf2Vzln88OBrqf0=";
|
2014-06-10 23:13:28 +00:00
|
|
|
};
|
|
|
|
|
2022-10-31 14:04:17 +00:00
|
|
|
nativeBuildInputs = [ pkg-config mandoc ];
|
2016-05-15 17:30:39 +00:00
|
|
|
buildInputs = [ popt ];
|
2018-11-28 12:06:23 +00:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
2014-06-10 23:13:28 +00:00
|
|
|
|
2017-12-17 08:08:05 +00:00
|
|
|
makeFlags = [
|
|
|
|
"prefix=$(out)"
|
2014-06-10 23:13:28 +00:00
|
|
|
"libdir=$(out)/lib"
|
2018-05-23 16:28:14 +00:00
|
|
|
"bindir=$(bin)/bin"
|
|
|
|
"mandir=$(man)/share/man"
|
|
|
|
"includedir=$(dev)/include"
|
|
|
|
"PCDIR=$(dev)/lib/pkgconfig"
|
2014-06-10 23:13:28 +00:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-06-10 23:13:28 +00:00
|
|
|
description = "Tools and library to manipulate EFI variables";
|
2022-11-15 20:43:10 +00:00
|
|
|
homepage = "https://github.com/rhboot/efivar";
|
2014-06-10 23:13:28 +00:00
|
|
|
platforms = platforms.linux;
|
2022-10-31 14:04:17 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2014-06-10 23:13:28 +00:00
|
|
|
};
|
|
|
|
}
|