diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-12-15 00:56:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 00:56:59 +0100 |
commit | f3109e1b72519c78868c720b8599d3ada3d426cf (patch) | |
tree | 81b97507253538d6866504c548a1ce5be40c0d15 /pkgs | |
parent | 9a6cfc7179f48bb054c3862c2d8c0cd359693b23 (diff) | |
parent | dd3f20b67e298243edf558e43e1640c11efebc65 (diff) |
Merge pull request #263214 from lromor/pkg-libdicom
libdicom: init at 1.0.5
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/libdicom/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libdicom/default.nix b/pkgs/development/libraries/libdicom/default.nix new file mode 100644 index 0000000000000..cb4d68121ef57 --- /dev/null +++ b/pkgs/development/libraries/libdicom/default.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, uthash +, meson +, ninja +, pkg-config +, check +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libdicom"; + version = "1.0.5"; + + src = fetchFromGitHub { + owner = "ImagingDataCommons"; + repo = "libdicom"; + rev = "v${finalAttrs.version}"; + sha256 = "sha256-9n0Gp9+fmTM/shgWC8zpwt1pic9BrvDubOt7f+ZDMeE="; + }; + + buildInputs = [ uthash ]; + + nativeBuildInputs = [ meson ninja pkg-config ] + ++ lib.optionals (finalAttrs.finalPackage.doCheck) [ check ]; + + mesonBuildType = "release"; + + mesonFlags = lib.optionals (!finalAttrs.finalPackage.doCheck) [ "-Dtests=false" ]; + + doCheck = true; + + meta = with lib; { + description = "C library for reading DICOM files"; + homepage = "https://github.com/ImagingDataCommons/libdicom"; + license = licenses.mit; + maintainers = with maintainers; [ lromor ]; + platforms = platforms.unix; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 928411d895d50..035f7e5382c1a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22662,6 +22662,8 @@ with pkgs; libdex = callPackage ../development/libraries/libdex { }; + libdicom = callPackage ../development/libraries/libdicom { }; + libdigidocpp = callPackage ../development/libraries/libdigidocpp { }; libdiscid = callPackage ../development/libraries/libdiscid { }; |