commit 2fb12002c2cc098eaa0fe1e60a321c0f3453ddf1
parent 99f5cb3ee8883fe45a7e2fd63796645e109f5c50
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Tue, 21 Jun 2022 20:26:24 +0300
Add ossim
Diffstat:
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -189,6 +189,7 @@ lib.makeScope newScope (
mbutiles = callPackage ./geospatial/mbutiles { };
morecantile = callPackage ./geospatial/morecantile { };
orbisgis-bin = callPackage ./geospatial/orbisgis/bin.nix { jre = pkgs.jre8; };
+ ossim = callPackage ./geospatial/ossim { };
pmtiles = callPackage ./geospatial/pmtiles { };
pipfile = callPackage ./geospatial/pipfile { };
polyvectorization = libsForQt5.callPackage ./geospatial/polyvectorization { };
diff --git a/pkgs/geospatial/ossim/default.nix b/pkgs/geospatial/ossim/default.nix
@@ -0,0 +1,30 @@
+{ lib, stdenv, fetchFromGitHub, cmake, geos, jsoncpp, libgeotiff, libjpeg, libtiff }:
+
+stdenv.mkDerivation rec {
+ pname = "ossim";
+ version = "2.12.0";
+
+ src = fetchFromGitHub {
+ owner = "ossimlabs";
+ repo = pname;
+ rev = version;
+ hash = "sha256-zmyzHEhf/JPBBP7yJyxyKHkJH5psRSl3h8ZcOJ7dr7o=";
+ };
+
+ nativeBuildInputs = [ cmake ];
+
+ buildInputs = [ geos jsoncpp libgeotiff libjpeg libtiff ];
+
+ cmakeFlags = [
+ "-DBUILD_OSSIM_APPS=OFF"
+ "-DBUILD_OSSIM_TESTS=OFF"
+ ];
+
+ meta = with lib; {
+ description = "Open Source Software Image Map library";
+ homepage = "https://trac.osgeo.org/ossim";
+ license = licenses.mit;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}