diff --git a/default.nix b/default.nix

index 5be94edc4d11e4257a846572d614a053f2db938a..3d825138bf7a3be8f3c9e2b845a0bdf9a42bf03b 100644

--- a/default.nix

+++ b/default.nix

@@ -64,6 +64,9 @@ };

imgp = python3Packages.callPackage ./pkgs/imgp {

 inherit (sources) imgp;

};

mbtileserver = callPackage ./pkgs/mbtileserver {

 inherit (sources) mbtileserver;

};

diff --git a/nix/sources.json b/nix/sources.json

index 748408ef696ff18e8c810df3e8a1ea7736bc63f8..038834bc04a4bd9bbefd6b941baa8ccd74ab7755 100644

--- a/nix/sources.json

+++ b/nix/sources.json

@@ -191,6 +191,18 @@ "type": "tarball",

     "url": "https://github.com/OpenOrienteering/mapper/archive/9ff0368ca9548da52c6ac7f04c087ef4dcb3a1e3.tar.gz",

     "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"

 },

 "mbtileserver": {

     "branch": "master",

     "description": "Basic Go server for mbtiles",

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

new file mode 100644

index 0000000000000000000000000000000000000000..762324484d2197d51441453fb472e0815ccf7ad4

--- /dev/null

+++ b/pkgs/mapsoft/0001-fix-build.patch

@@ -0,0 +1,64 @@

+diff --git i/SConstruct w/SConstruct

+index ddcf739d..f98e338c 100644

+--- i/SConstruct

++++ w/SConstruct

+@@ -16,7 +16,7 @@ else:

+-env = Environment ()

++env = Environment (ENV = {'PATH' : os.environ['PATH']})

+@@ -50,10 +50,13 @@ env.Append (CCFLAGS=['-Werror=return-type'])

+-env.Append (ENV = {'PKG_CONFIG_PATH': os.getcwd()+'/core/pc'})

+- env.Append (ENV = {'PKG_CONFIG_PATH':

+- [ os.getcwd()+'/core/pc', os.getenv('PKG_CONFIG_PATH')]})

++ env.Append (ENV = {'PKG_CONFIG_PATH': os.getenv('PKG_CONFIG_PATH')})

++

++if os.getenv('CPPFLAGS'):

++ env.Append (CPPFLAGS=os.getenv('CPPFLAGS'))

++if os.getenv('LINKFLAGS'):

++ env.Append (LINKFLAGS=os.getenv('LINKFLAGS'))

+@@ -62,13 +65,13 @@ env.Append (LIBS = "mapsoft")

+-env.PREFIX = ARGUMENTS.get('prefix', '')

+-env.bindir=env.PREFIX+'/usr/bin'

+-env.datadir=env.PREFIX+'/usr/share/mapsoft'

+-env.man1dir=env.PREFIX+'/usr/share/man/man1'

+-env.figlibdir=env.PREFIX+'/usr/share/xfig/Libraries'

+-env.libdir=env.PREFIX+ sysconfig.get_config_var('LIBDIR')

+-env.desktopdir=env.PREFIX+'/usr/share/applications'

++env.PREFIX = ARGUMENTS.get('prefix', '/usr')

++env.bindir=env.PREFIX+'/bin'

++env.datadir=env.PREFIX+'/share/mapsoft'

++env.man1dir=env.PREFIX+'/share/man/man1'

++env.figlibdir=env.PREFIX+'/share/xfig/Libraries'

++env.libdir=env.PREFIX+ '/lib'

++env.desktopdir=env.PREFIX+'/share/applications'

+diff --git i/core/SConscript w/core/SConscript

+index fe5f1802..7238c176 100644

+--- i/core/SConscript

++++ w/core/SConscript

+@@ -13,7 +13,7 @@ import os

+-env.UseLibs('libxml-2.0 libzip libproj libgif libjpeg libpng libtiff-4 libcurl zlib yaml-0.1 shp jansson')

++env.UseLibs('libxml-2.0 libzip proj libjpeg libpng libtiff-4 libcurl zlib yaml-0.1 shapelib jansson')

diff --git a/pkgs/mapsoft/default.nix b/pkgs/mapsoft/default.nix

new file mode 100644

index 0000000000000000000000000000000000000000..f4e9eef6f4b0d7306ed36363d4c9040447b2ad5c

--- /dev/null

+++ b/pkgs/mapsoft/default.nix

@@ -0,0 +1,64 @@

+{ stdenv, perlPackages, python2Packages, gimp, mapsoft

+, fig2dev, imagemagick, m4, netpbm, pkgconfig, scons

+, boost, curl, giflib, gtkmm2, jansson, libjpeg, libpng

+, libtiff, libusb1, libxml2, libyaml, libzip

+, proj, shapelib, zlib }:

+stdenv.mkDerivation rec {

+}

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

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