Unverified Commit f02bd10f authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

octavePackages.dicom: Add autoreconf and update 0.7.1 -> 0.7.2 (#508660)

parents 566acc07 b1340a1f
Loading
Loading
Loading
Loading
+17 −4
Original line number Diff line number Diff line
@@ -3,31 +3,44 @@
  lib,
  fetchFromGitHub,
  gdcm,
  autoreconfHook,
  pkg-config,
  cmake,
  nix-update-script,
}:

buildOctavePackage rec {
  pname = "dicom";
  version = "0.7.1";
  version = "0.7.2";

  src = fetchFromGitHub {
    owner = "gnu-octave";
    repo = "octave-dicom";
    tag = "release-${version}";
    sha256 = "sha256-NNdcnIeHXDRmZZp0WvwGtfMJ4BSR6+aK6FVS0BG51U8=";
    sha256 = "sha256-6FcHxNUOTvSzYqknD89G3IyKVQs/dH+heoA/5Sx4lyg=";
  };

  nativeBuildInputs = [
    pkg-config
    autoreconfHook
    cmake
  ];

  dontUseCmakeConfigure = true;

  propagatedBuildInputs = [
    gdcm
  ];

  dontUseCmakeConfigure = true;

  preAutoreconf = ''
    pushd src
    # Removed these so autoreconf actually fires for our environment.
    rm config.*
  '';
  postAutoreconf = ''
    popd
  '';

  passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=release-(.*)" ]; };

  meta = {