commit ab28610bc8afa25468ec08113b160a32abeceff8
parent da1976b8e2412697e0e9c1e48cf0596362449689
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Wed, 7 Jan 2026 23:28:07 +0400
Up
Diffstat:
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/pkgs/by-name/os/ossim/package.nix b/pkgs/by-name/os/ossim/package.nix
@@ -4,12 +4,16 @@
fetchFromGitHub,
fetchpatch,
cmake,
+ makeWrapper,
+ curl,
+ freetype,
geos,
jsoncpp,
libgeotiff,
libjpeg,
libtiff,
- makeWrapper,
+ proj,
+ sqlite,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -19,8 +23,8 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "ossimlabs";
repo = "ossim";
- tag = finalAttrs.version;
- hash = "sha256-zmyzHEhf/JPBBP7yJyxyKHkJH5psRSl3h8ZcOJ7dr7o=";
+ tag = "v${finalAttrs.version}";
+ hash = "sha256-nVQN+XnCYpVQSkgKsolqbR3KtPGTkvpym4cDl7IqjUc=";
};
patches = [
@@ -31,17 +35,27 @@ stdenv.mkDerivation (finalAttrs: {
})
];
+ postPatch = ''
+ substituteInPlace CMakeLists.txt \
+ --replace-fail 'GET_GIT_REVISION()' "" \
+ --replace-fail 'OSSIM_GIT_REVISION_NUMBER "UNKNOWN"' 'OSSIM_GIT_REVISION_NUMBER "${finalAttrs.version}"'
+ '';
+
nativeBuildInputs = [
cmake
makeWrapper
];
buildInputs = [
+ curl
+ freetype
geos
jsoncpp
libgeotiff
libjpeg
libtiff
+ proj
+ sqlite
];
cmakeFlags = [
@@ -58,7 +72,7 @@ stdenv.mkDerivation (finalAttrs: {
meta = {
description = "Open Source Software Image Map library";
- homepage = "https://trac.osgeo.org/ossim";
+ homepage = "https://github.com/ossimlabs/ossim";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.sikmir ];
platforms = lib.platforms.unix;