about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/syncthing-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/syncthing-gtk')
-rw-r--r--nixpkgs/pkgs/applications/networking/syncthing-gtk/default.nix66
-rw-r--r--nixpkgs/pkgs/applications/networking/syncthing-gtk/paths.patch22
2 files changed, 0 insertions, 88 deletions
diff --git a/nixpkgs/pkgs/applications/networking/syncthing-gtk/default.nix b/nixpkgs/pkgs/applications/networking/syncthing-gtk/default.nix
deleted file mode 100644
index caa46942ca92..000000000000
--- a/nixpkgs/pkgs/applications/networking/syncthing-gtk/default.nix
+++ /dev/null
@@ -1,66 +0,0 @@
-{ lib, fetchFromGitHub, fetchpatch, libnotify, librsvg, killall
-, gtk3, libappindicator-gtk3, substituteAll, syncthing, wrapGAppsHook
-, gnome, buildPythonApplication, python-dateutil, pyinotify, pygobject3
-, bcrypt, gobject-introspection, gsettings-desktop-schemas
-, pango, gdk-pixbuf, atk }:
-
-buildPythonApplication rec {
-  version = "0.9.4.4";
-  pname = "syncthing-gtk";
-
-  src = fetchFromGitHub {
-    owner = "syncthing";
-    repo = "syncthing-gtk";
-    rev = "v${version}";
-    sha256 = "0nc0wd7qvyri7841c3dd9in5d7367hys0isyw8znv5fj4c0a6v1f";
-  };
-
-  nativeBuildInputs = [
-    wrapGAppsHook
-    # For setup hook populating GI_TYPELIB_PATH
-    gobject-introspection
-    pango gdk-pixbuf atk libnotify
-  ];
-
-  buildInputs = [
-    gtk3 librsvg libappindicator-gtk3
-    libnotify gnome.adwaita-icon-theme
-    # Schemas with proxy configuration
-    gsettings-desktop-schemas
-  ];
-
-  propagatedBuildInputs = [
-    python-dateutil pyinotify pygobject3 bcrypt
-  ];
-
-  patches = [
-    (substituteAll {
-      src = ./paths.patch;
-      killall = "${killall}/bin/killall";
-      syncthing = "${syncthing}/bin/syncthing";
-    })
-  ];
-
-  # repo doesn't have any tests
-  doCheck = false;
-
-  setupPyBuildFlags = [ "build_py" "--nofinddaemon" "--nostdownloader" ];
-
-  postPatch = ''
-    substituteInPlace setup.py --replace "version = get_version()" "version = '${version}'"
-    substituteInPlace scripts/syncthing-gtk --replace "/usr/share" "$out/share"
-    substituteInPlace syncthing_gtk/app.py --replace "/usr/share" "$out/share"
-    substituteInPlace syncthing_gtk/uisettingsdialog.py --replace "/usr/share" "$out/share"
-    substituteInPlace syncthing_gtk/wizard.py --replace "/usr/share" "$out/share"
-    substituteInPlace syncthing-gtk.desktop --replace "/usr/bin/syncthing-gtk" "$out/bin/syncthing-gtk"
-  '';
-
-  meta = with lib; {
-    description = "GTK3 & python based GUI for Syncthing";
-    homepage = "https://github.com/syncthing/syncthing-gtk";
-    license = licenses.gpl2;
-    broken = true;
-    maintainers = with maintainers; [ ];
-    platforms = syncthing.meta.platforms;
-  };
-}
diff --git a/nixpkgs/pkgs/applications/networking/syncthing-gtk/paths.patch b/nixpkgs/pkgs/applications/networking/syncthing-gtk/paths.patch
deleted file mode 100644
index 0ba5a4f2db84..000000000000
--- a/nixpkgs/pkgs/applications/networking/syncthing-gtk/paths.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- a/syncthing_gtk/configuration.py
-+++ b/syncthing_gtk/configuration.py
-@@ -30,7 +30,7 @@
- 		"autokill_daemon"			: (int, 2),	# 0 - never kill, 1 - always kill, 2 - ask
- 		"daemon_priority"			: (int, 0), # uses nice values
- 		"max_cpus"					: (int, 0), # 0 for all cpus
--		"syncthing_binary"			: (str, "/usr/bin/syncthing"),
-+		"syncthing_binary"			: (str, "@syncthing@"),
- 		"syncthing_arguments"		: (str, ""),
- 		"minimize_on_start"			: (bool, False),
- 		"folder_as_path"			: (bool, True),
---- a/syncthing_gtk/tools.py
-+++ b/syncthing_gtk/tools.py
-@@ -303,7 +303,7 @@
- 			return False
- 		# signal 0 doesn't kill anything, but killall exits with 1 if
- 		# named process is not found
--		p = Popen(["killall", "-u", os.environ["USER"], "-q", "-s", "0", "syncthing"])
-+		p = Popen(["@killall@", "-u", os.environ["USER"], "-q", "-s", "0", "syncthing"])
- 		p.communicate()
- 		return p.returncode == 0
- 	else: