Commit b34ad9eb authored by Karl Hallsby's avatar Karl Hallsby
Browse files

octavePackages.dicom: Run autoconf to build the necessary C++

parent 3e343557
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@
  lib,
  fetchFromGitHub,
  gdcm,
  autoreconfHook,
  pkg-config,
  cmake,
  nix-update-script,
}:
@@ -19,15 +21,26 @@ buildOctavePackage rec {
  };

  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 = {