From 64c5ea07dae4264dc2588ac7005b4d8e03a98ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Fri, 2 Aug 2019 20:47:28 +0200 Subject: [PATCH] cbmem: init at 4.9 --- pkgs/tools/misc/cbmem/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/misc/cbmem/default.nix diff --git a/pkgs/tools/misc/cbmem/default.nix b/pkgs/tools/misc/cbmem/default.nix new file mode 100644 index 000000000000..d2efea1c03a6 --- /dev/null +++ b/pkgs/tools/misc/cbmem/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + pname = "cbmem"; + version = "4.9"; + + src = fetchurl { + url = "https://coreboot.org/releases/coreboot-${version}.tar.xz"; + sha256 = "0xkai65d3z9fivwscbkm7ndcw2p9g794xz8fwdv979w77n5qsdij"; + }; + + buildPhase = '' + make -C util/cbmem + ''; + + installPhase = '' + install -Dm755 util/cbmem/cbmem $out/bin/cbmem + ''; + + meta = with stdenv.lib; { + description = "Read coreboot timestamps and console logs"; + homepage = "https://www.coreboot.org"; + license = licenses.gpl2; + maintainers = [ maintainers.petabyteboy ]; + platforms = platforms.linux; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1d4295586fa2..b12558adbea3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14750,6 +14750,8 @@ in ifdtool = callPackage ../tools/misc/ifdtool { }; + cbmem = callPackage ../tools/misc/cbmem { }; + nvramtool = callPackage ../tools/misc/nvramtool { }; vmfs-tools = callPackage ../tools/filesystems/vmfs-tools { };