diff --git a/pkgs/geospatial/mapsoft/0002-fix-build.patch b/pkgs/geospatial/mapsoft/0002-fix-build.patch

index 2bd7d1ba14ee0dc69d31aa827c4c427ff4d3aacc..f6c49d19faa24918902ff3b1a5c4bf477b5fe2d2 100644

--- a/pkgs/geospatial/mapsoft/0002-fix-build.patch

+++ b/pkgs/geospatial/mapsoft/0002-fix-build.patch

@@ -1,46 +1,24 @@

-diff --git i/pc/libdb.pc w/pc/libdb.pc

-index 6a40e95..682c932 100644

---- i/pc/libdb.pc

-+++ w/pc/libdb.pc

-@@ -1,5 +1,11 @@

-+prefix=@db@

-+exec_prefix=${prefix}

-+libdir=${exec_prefix}/lib

-+includedir=${prefix}/include

-+

--Libs: -ldb

-+Libs: -L${libdir} -ldb

-+Cflags: -I${includedir}

-diff --git i/pc/libgif.pc w/pc/libgif.pc

-index cb154c9..24d8898 100644

---- i/pc/libgif.pc

-+++ w/pc/libgif.pc

-@@ -1,5 +1,11 @@

-+prefix=@giflib@

-+exec_prefix=${prefix}

-+libdir=${exec_prefix}/lib

-+includedir=${prefix}/include

-+

--Libs: -lgif

-+Libs: -L${libdir} -lgif

-+Cflags: -I${includedir}

-diff --git i/tmpdir/Makefile w/tmpdir/Makefile

-index d44adac..c0b361e 100644

---- i/tmpdir/Makefile

-+++ w/tmpdir/Makefile

-@@ -1,6 +1,6 @@

--SCRIPT_TESTS := tmpdir

-+#SCRIPT_TESTS := tmpdir

+diff --git a/programs/ms2render/ms2render.cpp b/programs/ms2render/ms2render.cpp

+index 6381e37..e36b79d 100644

+--- a/programs/ms2render/ms2render.cpp

++++ b/programs/ms2render/ms2render.cpp

+@@ -14,6 +14,7 @@

++#include "srtm/srtm.h"

+@@ -126,9 +127,9 @@ main(int argc, char *argv[]){

+- std::shared_ptr s;

++ std::shared_ptr s;

+- s.reset(new SRTMSurf(O));

++ s.reset(new SRTM(O));

diff --git a/pkgs/geospatial/mapsoft/2.nix b/pkgs/geospatial/mapsoft/2.nix

index 5d56af1c9283faecfa373baac0c64f21f0a48181..122f1fa35f67b382f51c0964bced103b2c2e76f4 100644

--- a/pkgs/geospatial/mapsoft/2.nix

+++ b/pkgs/geospatial/mapsoft/2.nix

@@ -30,29 +30,25 @@ }:

stdenv.mkDerivation (finalAttrs: {

pname = "mapsoft2";

src = fetchFromGitHub {

 owner = "slazav";

 repo = "mapsoft2";

 rev = "${finalAttrs.version}-alt1";

 fetchSubmodules = true;

};

postPatch = ''

 substituteInPlace modules/get_deps \

   --replace-fail "/usr/bin/perl" "${perlPackages.perl}/bin/perl"

 substituteInPlace modules/mapview/mapview.cpp \

@@ -93,6 +89,7 @@ ] ++ lib.optional stdenv.isDarwin desktopToDarwinBundle;

buildInputs = [

 db

 gsettings-desktop-schemas

 gtkmm3

 jansson

@@ -107,7 +104,7 @@ proj

 shapelib

];

makeFlags = [ "prefix=$(out)" ];

Proxy Information
Original URL
gemini://git.sikmir.ru/nur-packages/commits/7fb19f4716f57415874b437fbca943ab63d2d27e.patch
Status Code
Success (20)
Meta
application/octet-stream
Capsule Response Time
135.972287 milliseconds
Gemini-to-HTML Time
3.30562 milliseconds

This content has been proxied by September (3851b).