nixpkgs/pkgs/tools/misc/flashrom-stable/default.nix
Felix Singer 2b920e5a08 flashrom-stable: init at v1.1
flashrom-stable is a fork of flashrom aiming stability. A proper NixOS
module and udev support will be added later.

Signed-off-by: Felix Singer <felix.singer@secunet.com>
2023-04-25 10:18:34 +02:00

47 lines
945 B
Nix

{ 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
};
}