Merge pull request #216623 from R-VdP/flashrom-1-3-0

flashrom: 1.2.1 -> 1.3.0
This commit is contained in:
Weijia Wang 2023-02-16 15:24:09 +01:00 committed by GitHub
commit 8f4bee866a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,11 +13,11 @@
stdenv.mkDerivation rec {
pname = "flashrom";
version = "1.2.1";
version = "1.3.0";
src = fetchurl {
url = "https://download.flashrom.org/releases/flashrom-v${version}.tar.bz2";
hash = "sha256-iaf/W+sIyJuHlbvSU6UblFNUeoZMMXkzAilrVrvFbWU=";
hash = "sha256-oFMjRFPM0BLnnzRDvcxhYlz5e3/Xy0zdi/v/vosUliM=";
};
nativeBuildInputs = [ pkg-config installShellFiles ];
@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
++ lib.optional jlinkSupport libjaylink;
postPatch = ''
substituteInPlace util/z60_flashrom.rules \
substituteInPlace util/flashrom_udev.rules \
--replace "plugdev" "flashrom"
'';
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
++ lib.optional jlinkSupport "CONFIG_JLINK_SPI=yes";
postInstall = ''
install -Dm644 util/z60_flashrom.rules $out/lib/udev/rules.d/flashrom.rules
install -Dm644 util/flashrom_udev.rules $out/lib/udev/rules.d/flashrom.rules
'';
meta = with lib; {