13 stdenv.mkDerivation (finalAttrs: {
17 src = fetchFromGitHub {
18 owner = "ImagingDataCommons";
20 rev = "v${finalAttrs.version}";
21 sha256 = "sha256-9n0Gp9+fmTM/shgWC8zpwt1pic9BrvDubOt7f+ZDMeE=";
26 name = "CVE-2024-24793.CVE-2024-24794.patch";
27 url = "https://github.com/ImagingDataCommons/libdicom/commit/3661aa4cdbe9c39f67d38ae87520f9e3ed50ab16.patch";
28 excludes = [ "CHANGELOG.md" ];
29 hash = "sha256-/KTp0nKYk6jX4phNHY+nzjEptUBHKM2JkOftS5vHsEw=";
33 buildInputs = [ uthash ];
39 ] ++ lib.optionals (finalAttrs.finalPackage.doCheck) [ check ];
41 mesonBuildType = "release";
43 mesonFlags = lib.optionals (!finalAttrs.finalPackage.doCheck) [ "-Dtests=false" ];
48 description = "C library for reading DICOM files";
49 homepage = "https://github.com/ImagingDataCommons/libdicom";
50 license = licenses.mit;
51 maintainers = with maintainers; [ lromor ];
52 platforms = platforms.unix;