diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-02-23 19:18:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 19:18:58 +0100 |
commit | d1a4939090e6f56ac48860d1384268e0f6e70b04 (patch) | |
tree | bad320f8c95dea25ad48b1dfb8be958421bc27b7 /pkgs/applications/gis | |
parent | e8026fb140cfd3573339700b2648c4f4ed40594e (diff) | |
parent | f20dc05ea6293595c2944c84acf053ecb7e41df8 (diff) |
Merge pull request #290676 from sikmir/oomapper
Diffstat (limited to 'pkgs/applications/gis')
-rw-r--r-- | pkgs/applications/gis/openorienteering-mapper/default.nix | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/pkgs/applications/gis/openorienteering-mapper/default.nix b/pkgs/applications/gis/openorienteering-mapper/default.nix deleted file mode 100644 index 81278c9184e7..000000000000 --- a/pkgs/applications/gis/openorienteering-mapper/default.nix +++ /dev/null @@ -1,92 +0,0 @@ -{ lib -, stdenv -, mkDerivation -, fetchFromGitHub -, fetchpatch -, clipper -, cmake -, cups -, doxygen -, gdal -, ninja -, proj -, qtimageformats -, qtlocation -, qtsensors -, qttools -, zlib -}: - -mkDerivation rec { - pname = "OpenOrienteering-Mapper"; - version = "0.9.5"; - - src = fetchFromGitHub { - owner = "OpenOrienteering"; - repo = "mapper"; - rev = "v${version}"; - hash = "sha256-BQbryRV5diBkOtva9sYuLD8yo3IwFqrkz3qC+C6eEfE="; - }; - - patches = [ - # https://github.com/OpenOrienteering/mapper/pull/1907 - (fetchpatch { - url = "https://github.com/OpenOrienteering/mapper/commit/bc52aa567e90a58d6963b44d5ae1909f3f841508.patch"; - sha256 = "1bkckapzccn6k0ri6bgrr0nhis9498fnwj7b32s2ysym8zcg0355"; - }) - ]; - - nativeBuildInputs = [ - cmake - doxygen - ninja - qttools - ]; - - buildInputs = [ - clipper - cups - gdal - proj - qtimageformats - qtlocation - qtsensors - zlib - ]; - - cmakeFlags = [ - # Building the manual and bundling licenses fails - # See https://github.com/NixOS/nixpkgs/issues/85306 - "-DLICENSING_PROVIDER:BOOL=OFF" - "-DMapper_MANUAL_QTHELP:BOOL=OFF" - ] ++ lib.optionals stdenv.isDarwin [ - # FindGDAL is broken and always finds /Library/Framework unless this is - # specified - "-DGDAL_INCLUDE_DIR=${gdal}/include" - "-DGDAL_CONFIG=${gdal}/bin/gdal-config" - "-DGDAL_LIBRARY=${gdal}/lib/libgdal.dylib" - # Don't bundle libraries - "-DMapper_PACKAGE_PROJ=0" - "-DMapper_PACKAGE_QT=0" - "-DMapper_PACKAGE_ASSISTANT=0" - "-DMapper_PACKAGE_GDAL=0" - ]; - - postInstall = with stdenv; lib.optionalString isDarwin '' - mkdir -p $out/Applications - mv $out/Mapper.app $out/Applications - mkdir -p $out/bin - ln -s $out/Applications/Mapper.app/Contents/MacOS/Mapper $out/bin/mapper - ''; - - meta = with lib; { - homepage = "https://www.openorienteering.org/apps/mapper/"; - description = "An orienteering mapmaking program"; - changelog = "https://github.com/OpenOrienteering/mapper/releases/tag/v${version}"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ mpickering sikmir ]; - platforms = with platforms; unix; - broken = stdenv.isDarwin; - mainProgram = "Mapper"; - }; -} |