default.nix (828B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 geos, 7 jsoncpp, 8 libgeotiff, 9 libjpeg, 10 libtiff, 11 }: 12 13 stdenv.mkDerivation (finalAttrs: { 14 pname = "ossim"; 15 version = "2.12.0"; 16 17 src = fetchFromGitHub { 18 owner = "ossimlabs"; 19 repo = "ossim"; 20 rev = finalAttrs.version; 21 hash = "sha256-zmyzHEhf/JPBBP7yJyxyKHkJH5psRSl3h8ZcOJ7dr7o="; 22 }; 23 24 nativeBuildInputs = [ cmake ]; 25 26 buildInputs = [ 27 geos 28 jsoncpp 29 libgeotiff 30 libjpeg 31 libtiff 32 ]; 33 34 cmakeFlags = [ 35 (lib.cmakeBool "BUILD_OSSIM_APPS" false) 36 (lib.cmakeBool "BUILD_OSSIM_TESTS" false) 37 ]; 38 39 meta = { 40 description = "Open Source Software Image Map library"; 41 homepage = "https://trac.osgeo.org/ossim"; 42 license = lib.licenses.mit; 43 maintainers = [ lib.maintainers.sikmir ]; 44 platforms = lib.platforms.unix; 45 }; 46 })