about summary refs log tree commit diff
path: root/pkgs/tools/misc/fclones/gui.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/fclones/gui.nix')
-rw-r--r--pkgs/tools/misc/fclones/gui.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fclones/gui.nix b/pkgs/tools/misc/fclones/gui.nix
new file mode 100644
index 0000000000000..5f0959f55b421
--- /dev/null
+++ b/pkgs/tools/misc/fclones/gui.nix
@@ -0,0 +1,43 @@
+{ lib
+, rustPlatform
+, fetchCrate
+, pkg-config
+, wrapGAppsHook4
+, gdk-pixbuf
+, gtk4
+, libadwaita
+, stdenv
+, darwin
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "fclones-gui";
+  version = "0.1.2";
+
+  src = fetchCrate {
+    inherit pname version;
+    hash = "sha256-ge2l414kYHK3y4V837GTQ5sSxVRlU8ZYyGdBj4+vUL8=";
+  };
+
+  cargoHash = "sha256-rDAUA75KCWlhf13bCucV5w9WAJ+Uw+s8sUCCeWBYJeA=";
+
+  nativeBuildInputs = [
+    pkg-config
+    wrapGAppsHook4
+  ];
+
+  buildInputs = [
+    gdk-pixbuf
+    gtk4
+    libadwaita
+  ] ++ lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk_11_0.frameworks.IOKit
+  ];
+
+  meta = with lib; {
+    description = "Interactive duplicate file remover";
+    homepage = "https://github.com/pkolaczk/fclones/tree/main/fclones-gui";
+    license = licenses.mit;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}