Unverified Commit 5c50bad6 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

xfel: 1.3.2 -> 1.3.3 (#437849)

parents eac25e9e 101dda37
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -8,24 +8,26 @@

stdenv.mkDerivation (finalAttrs: {
  pname = "xfel";
  version = "1.3.2";
  version = "1.3.3";

  src = fetchFromGitHub {
    owner = "xboot";
    repo = "xfel";
    tag = "v${finalAttrs.version}";
    hash = "sha256-fmf+jqCWC7RaLknr/TyRV6VQz4+fp83ynHNk2ACkyfQ=";
    hash = "sha256-5Io2qOIeGovDpbxSlmqtGMrGMxUjMu/e1304euTEtJc=";
  };

  postPatch = ''
    substituteInPlace Makefile \
      --replace-fail "/usr/local" "$out" \
      --replace-fail "/etc" "$out/etc" \
      --replace-fail "/usr/share" "$out/share"
  '';

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ libusb1 ];

  makeFlags = [
    "DESTDIR=$(out)"
    "PREFIX=/"
  ];

  doInstallCheck = true;

  meta = {