2017-11-24 22:52:57 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libnotify, librsvg, psmisc, gtk3, syncthing, wrapGAppsHook, gnome3, python2Packages }:
|
2017-11-24 20:56:10 +01:00
|
|
|
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
|
|
version = "0.9.2.3";
|
|
|
|
name = "syncthing-gtk-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "syncthing";
|
|
|
|
repo = "syncthing-gtk";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0chl0f0kp6z0z00d1f3xjlicjfr9rzabw39wmjr66fwb5w5hcc42";
|
|
|
|
};
|
|
|
|
|
2017-11-24 22:52:57 +01:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3 (librsvg.override { enableIntrospection = true; })
|
|
|
|
libnotify psmisc
|
|
|
|
# Schemas with proxy configuration
|
|
|
|
gnome3.gsettings_desktop_schemas
|
2017-11-24 20:56:10 +01:00
|
|
|
];
|
|
|
|
|
2017-11-24 22:52:57 +01:00
|
|
|
propagatedBuildInputs = with python2Packages; [
|
|
|
|
syncthing dateutil pyinotify pygobject3
|
|
|
|
];
|
2017-11-24 20:56:10 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
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/wizard.py --replace "/usr/share" "$out/share"
|
|
|
|
substituteInPlace syncthing-gtk.desktop --replace "/usr/bin/syncthing-gtk" "$out/bin/syncthing-gtk"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = " GTK3 & python based GUI for Syncthing ";
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = syncthing.meta.platforms;
|
|
|
|
homepage = "https://github.com/syncthing/syncthing-gtk";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|