Unverified Commit 316f7965 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

flashprog: 1.3 -> 1.4 (#385048)

parents 041b0944 e6d2fecc
Loading
Loading
Loading
Loading
+9 −12
Original line number Diff line number Diff line
{
  fetchgit,
  fetchpatch,
  gitUpdater,
  lib,
  libftdi1,
  libgpiod,
@@ -17,23 +18,14 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "flashprog";
  version = "1.3";
  version = "1.4";

  src = fetchgit {
    url = "https://review.sourcearcade.org/flashprog";
    rev = "v${finalAttrs.version}";
    hash = "sha256-S+UKDtpKYenwm+zR+Bg8HHxb2Jr7mFHAVCZdZTqCyRQ=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-mpSmPZ306DedRi3Dcck/cDqoumgwFYpljiJtma+LZz4=";
  };

  patches = [
    # fixes compiler warnings on Darwin
    (fetchpatch {
      url = "https://review.sourcearcade.org/changes/flashprog~309/revisions/2/patch?download";
      hash = "sha256-eiEenR8+CHCJcNx9YY09I7gxRGUQWmaQlmXtykvXyMU=";
      decode = "base64 -d";
    })
  ];

  nativeBuildInputs = [
    meson
    ninja
@@ -60,6 +52,11 @@ stdenv.mkDerivation (finalAttrs: {
    install -Dm644 util/50-flashprog.rules "$out/lib/udev/rules.d/50-flashprog.rules"
  '';

  passthru.updateScript = gitUpdater {
    rev-prefix = "v";
    allowedVersions = "^[0-9\\.]+$";
  };

  meta = with lib; {
    homepage = "https://flashprog.org";
    description = "Utility for reading, writing, erasing and verifying flash ROM chips";