about summary refs log tree commit diff
path: root/pkgs/applications/graphics/conjure
diff options
context:
space:
mode:
authorsunder <evenquantity@gmail.com>2023-08-07 14:04:37 +0300
committersunder <evenquantity@gmail.com>2023-08-07 14:04:37 +0300
commite099e0185b81e1f2b237d25c4d853e72d5e6255f (patch)
tree53cb02d563e7c5a898df2fe0963a12e2ead8e182 /pkgs/applications/graphics/conjure
parentd85f641287e4f632e9ee3708f0af6d8a41380e36 (diff)
conjure: init at 0.1.2
Diffstat (limited to 'pkgs/applications/graphics/conjure')
-rw-r--r--pkgs/applications/graphics/conjure/default.nix71
1 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/conjure/default.nix b/pkgs/applications/graphics/conjure/default.nix
new file mode 100644
index 0000000000000..b0b00369ffde3
--- /dev/null
+++ b/pkgs/applications/graphics/conjure/default.nix
@@ -0,0 +1,71 @@
+{ fetchFromGitHub
+, gobject-introspection
+, lib
+, libadwaita
+, python3Packages
+, wrapGAppsHook
+, meson
+, ninja
+, desktop-file-utils
+, pkg-config
+, appstream-glib
+, gtk4
+}:
+python3Packages.buildPythonApplication rec {
+  pname = "conjure";
+  version = "0.1.2";
+
+  format = "other";
+
+  src = fetchFromGitHub {
+    owner = "nate-xyz";
+    repo = "conjure";
+    rev = "v${version}";
+    hash = "sha256-qWeqUQxTTnmJt40Jm1qDTGGuSQikkurzOux8sZsmDQk=";
+  };
+
+  nativeBuildInputs = [
+    gobject-introspection
+    wrapGAppsHook
+    desktop-file-utils
+    appstream-glib
+    meson
+    ninja
+    pkg-config
+    gtk4
+  ];
+
+  buildInputs = [
+    libadwaita
+  ];
+
+  propagatedBuildInputs = with python3Packages; [
+    pygobject3
+    loguru
+    wand
+  ];
+
+  nativeCheckInputs = with python3Packages; [
+    pytest
+  ];
+
+  dontWrapGApps = true;
+
+  preFixup = ''
+    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
+  '';
+
+  meta = with lib; {
+    description = "Magically transform your images";
+    longDescription = ''
+      Resize, crop, rotate, flip images, apply various filters and effects,
+      adjust levels and brightness, and much more. An intuitive tool for designers,
+      artists, or just someone who wants to enhance their images.
+      Built on top of the popular image processing library, ImageMagick with python
+      bindings from Wand.
+    '';
+    homepage = "https://github.com/nate-xyz/conjure";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ sund3RRR ];
+  };
+}