about summary refs log tree commit diff
path: root/pkgs/applications/graphics
diff options
context:
space:
mode:
authorJonas Heinrich <onny@project-insanity.org>2022-09-10 11:50:56 +0200
committerGitHub <noreply@github.com>2022-09-10 11:50:56 +0200
commita128f2b7ef440d5bfa5429fd1091750e9aeded71 (patch)
tree1f9619213553e53c096e26e6607096c7c8bceaa2 /pkgs/applications/graphics
parent7cedbf5357450637c9d62c664edf56b66b9f43f8 (diff)
parentf6a34494ebeff5d80f75f2ee382a6e3f14a67f74 (diff)
Merge pull request #190589 from zendo/eyedropper
eyedropper: init at 0.2.0
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r--pkgs/applications/graphics/eyedropper/default.nix59
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/eyedropper/default.nix b/pkgs/applications/graphics/eyedropper/default.nix
new file mode 100644
index 0000000000000..6344835222346
--- /dev/null
+++ b/pkgs/applications/graphics/eyedropper/default.nix
@@ -0,0 +1,59 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, rustPlatform
+, pkg-config
+, meson
+, ninja
+, glib
+, gtk4
+, libadwaita
+, wrapGAppsHook4
+, appstream-glib
+, desktop-file-utils
+}:
+
+stdenv.mkDerivation rec {
+  pname = "eyedropper";
+  version = "0.2.0";
+
+  src = fetchFromGitHub {
+    owner = "FineFindus";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-xyvnnWts+VuUFlV/o1cGOM7482ReiHVsn+AfdExYBTM=";
+  };
+
+  cargoDeps = rustPlatform.fetchCargoTarball {
+    inherit src;
+    name = "${pname}-${version}";
+    hash = "sha256-8G1fJ5YiUAzMqDoIjWGDTvtPw8chkxPrOz/c9WZRbhM=";
+  };
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+    wrapGAppsHook4
+    appstream-glib
+    desktop-file-utils
+  ] ++ (with rustPlatform; [
+    rust.cargo
+    rust.rustc
+    cargoSetupHook
+  ]);
+
+  buildInputs = [
+    glib
+    gtk4
+    libadwaita
+  ];
+
+  meta = with lib; {
+    description = "An easy-to-use color picker and editor";
+    homepage = "https://github.com/FineFindus/eyedropper";
+    license = licenses.gpl3Plus;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ zendo ];
+  };
+}