diff --git a/pkgs/development/octave-modules/dicom/default.nix b/pkgs/development/octave-modules/dicom/default.nix index c10995e0c0ea..7932c497c84e 100644 --- a/pkgs/development/octave-modules/dicom/default.nix +++ b/pkgs/development/octave-modules/dicom/default.nix @@ -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 = {