1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

nvramtool: init at 4.8.1 (#46774)

https://www.coreboot.org/Nvramtool
This commit is contained in:
Henry 2018-09-17 15:24:25 +02:00 committed by xeji
parent dd5dcc65ac
commit fa58491b9e
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ stdenv, fetchgit, iasl, flex, bison }:
stdenv.mkDerivation rec {
name = "nvramtool-${version}";
version = "4.8.1";
src = fetchgit {
url = "http://review.coreboot.org/p/coreboot";
rev = "refs/tags/${version}";
sha256 = "0nrf840jg4fn38zcnz1r10w2yfpvrk1nvsrnbbgdbgkmpjxz0zw9";
};
nativeBuildInputs = [ flex bison ];
buildInputs = [ iasl ];
buildPhase = ''
export LEX=${flex}/bin/flex
make -C util/nvramtool
'';
installPhase = ''
mkdir -p $out/bin
cp util/nvramtool/nvramtool $out/bin
'';
meta = with stdenv.lib; {
description = "utility for reading/writing coreboot parameters and displaying information from the coreboot table in CMOS/NVRAM";
homepage = https://www.coreboot.org/Nvramtool;
license = licenses.gpl2;
maintainers = [ maintainers.cryptix ];
platforms = platforms.linux;
};
}

View file

@ -13370,6 +13370,8 @@ with pkgs;
cbfstool = callPackage ../applications/virtualization/cbfstool { };
nvramtool = callPackage ../tools/misc/nvramtool { };
vmfs-tools = callPackage ../tools/filesystems/vmfs-tools { };
pgbouncer = callPackage ../servers/sql/pgbouncer { };