Unverified Commit 776ffe15 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #217250 from felixsinger/pkgs/add/flashrom-stable

flashrom-stable: init at v1.1
parents a2e2972f 2b920e5a
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{ fetchgit
, installShellFiles
, lib
, libftdi1
, libgpiod
, libjaylink
, libusb1
, pciutils
, pkg-config
, stdenv
}:

stdenv.mkDerivation rec {
  pname = "flashrom-stable";
  version = "1.1";

  src = fetchgit {
    url = "https://review.coreboot.org/flashrom-stable";
    rev = "272aae888ce5abf5e999d750ee4577407db32246";
    hash = "sha256-DR4PAING69+TMsyycGxt1cu0ba1tTlG36+H/pJ0oP4E=";
  };

  nativeBuildInputs = [
    installShellFiles
    pkg-config
  ];

  buildInputs = [
    libftdi1
    libgpiod
    libjaylink
    libusb1
    pciutils
  ];

  makeFlags = [ "PREFIX=$(out)" "libinstall" ];

  meta = with lib; {
    homepage = "https://www.flashrom.org";
    description = "Utility for reading, writing, erasing and verifying flash ROM chips.";
    license = with licenses; [ gpl2 gpl2Plus ];
    maintainers = with maintainers; [ felixsinger ];
    platforms = platforms.all;
    broken = stdenv.isDarwin; # requires DirectHW
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -7462,6 +7462,8 @@ with pkgs;
  flashrom = callPackage ../tools/misc/flashrom { };
  flashrom-stable = callPackage ../tools/misc/flashrom-stable { };
  flent = python3Packages.callPackage ../applications/networking/flent { };
  flexoptix-app = callPackage ../tools/misc/flexoptix-app { };