about summary refs log tree commit diff
path: root/pkgs/applications/graphics/drawing/default.nix
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-03-04 21:24:05 +0100
committerJan Tojnar <jtojnar@gmail.com>2020-03-04 21:24:05 +0100
commit1a44e325d2b4d9d487f469e7f0ca2af73c8b270d (patch)
tree1ca842b9db5b4f2f94965bf9dd670ec151049f3c /pkgs/applications/graphics/drawing/default.nix
parent62e09735d04b4593e0542ad884850acc1236261f (diff)
parent7399c59c4150635b896470078c5f5d18d702061a (diff)
downloadnixlib-1a44e325d2b4d9d487f469e7f0ca2af73c8b270d.tar
nixlib-1a44e325d2b4d9d487f469e7f0ca2af73c8b270d.tar.gz
nixlib-1a44e325d2b4d9d487f469e7f0ca2af73c8b270d.tar.bz2
nixlib-1a44e325d2b4d9d487f469e7f0ca2af73c8b270d.tar.lz
nixlib-1a44e325d2b4d9d487f469e7f0ca2af73c8b270d.tar.xz
nixlib-1a44e325d2b4d9d487f469e7f0ca2af73c8b270d.tar.zst
nixlib-1a44e325d2b4d9d487f469e7f0ca2af73c8b270d.zip
Merge branch 'staging-next' into staging
Diffstat (limited to 'pkgs/applications/graphics/drawing/default.nix')
-rw-r--r--pkgs/applications/graphics/drawing/default.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/drawing/default.nix b/pkgs/applications/graphics/drawing/default.nix
new file mode 100644
index 000000000000..67fa5da398bc
--- /dev/null
+++ b/pkgs/applications/graphics/drawing/default.nix
@@ -0,0 +1,69 @@
+{ lib
+, fetchFromGitHub
+, meson
+, ninja
+, pkgconfig
+, python3
+, gtk3
+, appstream-glib
+, desktop-file-utils
+, gobject-introspection
+, wrapGAppsHook
+, glib
+, gdk-pixbuf
+, pango
+, gettext
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "drawing";
+  version = "0.4.11";
+
+  format = "other";
+  
+  src = fetchFromGitHub {
+    owner = "maoschanz";
+    repo = pname;
+    rev = version;
+    sha256 = "00c1h6jns11rmsg35gy40fb6ahvik80wpbm2133bjcqxfwwnlal6";
+  };
+
+  nativeBuildInputs = [
+    appstream-glib
+    desktop-file-utils
+    gobject-introspection
+    meson
+    ninja
+    pkgconfig
+    wrapGAppsHook
+    glib
+    gettext
+  ];
+
+  buildInputs = [
+    glib
+    gtk3
+    gdk-pixbuf
+    pango
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    pycairo
+    pygobject3
+  ];
+
+  postPatch = ''
+    chmod +x build-aux/meson/postinstall.py # patchShebangs requires executable file
+    patchShebangs build-aux/meson/postinstall.py
+  '';
+
+  strictDeps = false;
+
+  meta = with lib; {
+    description = "A free basic image editor, similar to Microsoft Paint, but aiming at the GNOME desktop";
+    homepage = "https://maoschanz.github.io/drawing/";
+    maintainers = with maintainers; [ mothsart ];
+    license = licenses.gpl3Plus;
+    platforms = platforms.linux;
+  };
+}