diff --git a/nix/sources.json b/nix/sources.json
index 7572541ab4eb682a84de43f08e473207f5ddeff3..d1fc73a51c4d4a421fd192556891ddb057314a7f 100644
--- a/nix/sources.json
+++ b/nix/sources.json
@@ -843,6 +843,20 @@ "type": "tarball",
"url": "https://github.com/wladich/ozi_map/archive/4d6bd3f234960ba90d82e6d58da9c1bf4677eb16.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"branch": "master",
"builtin": false,
"date": "2019-08-23T14:52:46Z",
"description": "Reference implementation of Vectorization of Line Drawings via PolyVector Fields",
"homepage": "https://github.com/bmpix/PolyVectorization",
"owner": "bmpix",
"repo": "PolyVectorization",
"rev": "bceb8e2a08cca29cef1df074eb1a1f6450cc163f",
"sha256": "0d8281q3rdxzrxr5y9bxjkq2s2sfl8fgkk9kqpmpp3z5hxg893jq",
"type": "tarball",
"url": "https://github.com/bmpix/PolyVectorization/archive/bceb8e2a08cca29cef1df074eb1a1f6450cc163f.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
"py-staticmaps": {
"branch": "master",
"builtin": false,
diff --git a/pkgs/default.nix b/pkgs/default.nix
index e043d5957eebe037739beb0ff55805748f2c544e..f49c7aa470d11474e7e6c9f55f30c59ff8952093 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -189,9 +189,12 @@ osm2mp = perlPackages.callPackage ./tools/geo/osm2mp {
inherit sources;
inherit (perlPackages) GeoOpenstreetmapParser MatchSimple MathPolygon MathPolygonTree TreeR;
};
phyghtmap = callPackage ./tools/geo/phyghtmap { };
inherit sources;
ptunnel = callPackage ./tools/networking/ptunnel { };
saait = callPackage ./tools/misc/saait { };
sendmap20 = callPackage ./tools/geo/sendmap20 { };
stagit = callPackage ./tools/misc/stagit { };
diff --git a/pkgs/tools/graphics/polyvectorization/default.nix b/pkgs/tools/graphics/polyvectorization/default.nix
new file mode 100644
index 0000000000000000000000000000000000000000..820a1fdb663d9238b1b5b892c66d5962af96168c
--- /dev/null
+++ b/pkgs/tools/graphics/polyvectorization/default.nix
@@ -0,0 +1,30 @@
+{ lib, mkDerivation, cmake, boost165, eigen, opencv2, sources }:
+mkDerivation {
--replace "#define WITH_GUI 1" "//#define WITH_GUI 1"
+}
\ No newline at end of file
diff --git a/pkgs/tools/graphics/polyvectorization/with-gui.patch b/pkgs/tools/graphics/polyvectorization/with-gui.patch
new file mode 100644
index 0000000000000000000000000000000000000000..2c795a6c6112c71d3d0061357d15d652c89c7c6c
--- /dev/null
+++ b/pkgs/tools/graphics/polyvectorization/with-gui.patch
@@ -0,0 +1,39 @@
+diff --git i/src/main.cpp w/src/main.cpp
+index 5ccdfa9..1d04516 100644
+--- i/src/main.cpp
++++ w/src/main.cpp
+@@ -1,6 +1,6 @@
+-#ifdef _WIN32
++#if 1
+@@ -263,7 +263,7 @@ std::string type2str(int type) {
+-#ifdef _WIN32
++#if 1
+@@ -292,7 +292,7 @@ int main(int argc, char *argv[])
+-#ifdef _WIN32
++#if 1
+@@ -548,7 +548,7 @@ int main(int argc, char *argv[])
+-#ifdef _WIN32
++#if 1
application/octet-stream
This content has been proxied by September (3851b).