about summary refs log tree commit diff
path: root/pkgs/applications/graphics/inkscape
diff options
context:
space:
mode:
authorArnout Engelen <arnout@bzzt.net>2020-08-10 23:30:04 +0200
committerArnout Engelen <arnout@bzzt.net>2020-09-10 20:21:52 +0200
commit2e0a15fce1780ccd74e023a59b7f23a4f47fa666 (patch)
tree4c2e47c30729084f1a32b438ce92a0b15a970621 /pkgs/applications/graphics/inkscape
parent67b4880faa39b71356c6a085d4addce61a4f454d (diff)
inkscape-extensions.hexmap: init at 2020-06-06
Diffstat (limited to 'pkgs/applications/graphics/inkscape')
-rw-r--r--pkgs/applications/graphics/inkscape/extensions.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/inkscape/extensions.nix b/pkgs/applications/graphics/inkscape/extensions.nix
new file mode 100644
index 0000000000000..66a758f9fe513
--- /dev/null
+++ b/pkgs/applications/graphics/inkscape/extensions.nix
@@ -0,0 +1,37 @@
+{ stdenv
+, fetchFromGitHub
+}:
+
+{
+  hexmap = stdenv.mkDerivation {
+    name = "hexmap";
+    version = "2020-06-06";
+
+    src = fetchFromGitHub {
+      owner = "lifelike";
+      repo = "hexmapextension";
+      rev = "11401e23889318bdefb72df6980393050299d8cc";
+      sha256 = "1a4jhva624mbljj2k43wzi6hrxacjz4626jfk9y2fg4r4sga22mm";
+    };
+
+    preferLocalBuild = true;
+
+    installPhase = ''
+      runHook preInstall
+
+      mkdir -p "$out/share/inkscape/extensions"
+      cp -p *.inx *.py "$out/share/inkscape/extensions/"
+      find "$out/share/inkscape/extensions/" -name "*.py" -exec chmod +x {} \;
+
+      runHook postInstall
+    '';
+
+    meta = with stdenv.lib; {
+      description = "This is an extension for creating hex grids in Inkscape. It can also be used to make brick patterns of staggered rectangles";
+      homepage = "https://github.com/lifelike/hexmapextension";
+      license = licenses.gpl2Plus;
+      maintainers = [ maintainers.raboof ];
+      platforms = platforms.all;
+    };
+  };
+}