mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
47 lines
945 B
Nix
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
|
||
|
};
|
||
|
}
|