diff --git a/pkgs/development/libraries/science/biology/nifticlib/default.nix b/pkgs/development/libraries/science/biology/nifticlib/default.nix new file mode 100644 index 000000000000..d421a65e23d1 --- /dev/null +++ b/pkgs/development/libraries/science/biology/nifticlib/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, cmake, zlib }: + +stdenv.mkDerivation rec { + pname = "nifticlib"; + pversion = "2.0.0"; + name = "${pname}-${pversion}"; + + src = fetchurl { + url = "https://downloads.sourceforge.net/project/niftilib/${pname}/${pname}_2_0_0/${name}.tar.gz"; + sha256 = "a3e988e6a32ec57833056f6b09f940c69e79829028da121ff2c5c6f7f94a7f88"; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ zlib ]; + + checkPhase = "ctest"; + + meta = with stdenv.lib; { + homepage = https://sourceforge.net/projects/niftilib; + description = "Medical imaging format C API"; + maintainers = with maintainers; [ bcdarwin ]; + platforms = platforms.linux; + license = licenses.publicDomain; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 60a3bc8394df..8d7358f51de5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9761,6 +9761,8 @@ with pkgs; ndpi = callPackage ../development/libraries/ndpi { }; + nifticlib = callPackage ../development/libraries/science/biology/nifticlib { }; + notify-sharp = callPackage ../development/libraries/notify-sharp { }; ncurses5 = callPackage ../development/libraries/ncurses { abiVersion = "5"; };