diff options
author | Henry <111202+cryptix@users.noreply.github.com> | 2018-09-17 15:24:25 +0200 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-09-17 15:24:25 +0200 |
commit | fa58491b9e432dd551e505105235947122750474 (patch) | |
tree | afdae8ecc796831bb723f6d8d094c5f27b218753 /pkgs/tools | |
parent | dd5dcc65ac3b71bc65f884b8be175aa535ef6074 (diff) |
nvramtool: init at 4.8.1 (#46774)
https://www.coreboot.org/Nvramtool
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/nvramtool/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/misc/nvramtool/default.nix b/pkgs/tools/misc/nvramtool/default.nix new file mode 100644 index 0000000000000..fdce7076661a9 --- /dev/null +++ b/pkgs/tools/misc/nvramtool/default.nix @@ -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; + }; +} + |