about summary refs log tree commit diff
path: root/pkgs/by-name/in
diff options
context:
space:
mode:
authorhellwolf <hellwolf@freehell.org>2024-03-29 14:23:18 +0200
committerhellwolf <hellwolf@freehell.org>2024-04-09 22:31:46 +0300
commit02d5d463dcb3b7f571bd29a75613b5e693d06116 (patch)
tree3c108fa75985a4c99f80311502466009d0c93337 /pkgs/by-name/in
parent1d0d67d4d4ce6b36d0d679560f9583bd6b4cf417 (diff)
insync-nautilus: init at 3.8.7.50516
Diffstat (limited to 'pkgs/by-name/in')
-rw-r--r--pkgs/by-name/in/insync-nautilus/package.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/by-name/in/insync-nautilus/package.nix b/pkgs/by-name/in/insync-nautilus/package.nix
new file mode 100644
index 0000000000000..98079f1a2e88b
--- /dev/null
+++ b/pkgs/by-name/in/insync-nautilus/package.nix
@@ -0,0 +1,48 @@
+{ stdenv,
+  fetchurl,
+  lib,
+  dpkg,
+  gnome,
+  insync
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "insync-nautilus";
+  version = lib.getVersion insync;
+  pyproject = true;
+
+  # Download latest from: https://www.insynchq.com/downloads/linux#nautilus
+
+  src = fetchurl {
+    urls = [
+      "https://cdn.insynchq.com/builds/linux/insync-nautilus_${finalAttrs.version}_all.deb"
+      "https://web.archive.org/web/20240409080611/https://cdn.insynchq.com/builds/linux/insync-nautilus_${finalAttrs.version}_all.deb"
+    ];
+    hash = "sha256-aB1/ZzcQH3T1lviMZO8jXbtdbe4TW20f0TAcv4HDOGI=";
+  };
+
+  nativeBuildInputs = [
+    dpkg
+  ];
+
+  buildInputs = [
+    gnome.nautilus-python
+    insync
+  ];
+
+  installPhase = ''
+    runHook preInstall
+    mkdir -p $out
+    cp -R usr/share $out/
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    platforms = [ "x86_64-linux" ];
+    sourceProvenance = with lib.sourceTypes; [ fromSource ];
+    license = licenses.unfree;
+    maintainers = with maintainers; [ hellwolf ];
+    homepage = "https://www.insynchq.com";
+    description = "This package contains the Python extension and icons for integrating Insync with Nautilus";
+  };
+})