summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/3.12/misc/gpaste
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-08-14 21:04:58 +0200
committerLuca Bruno <lucabru@src.gnome.org>2014-08-14 21:16:42 +0200
commitdfbc9ff78123f750e8c8782d10b2271a8062bc4a (patch)
treee786608a68bf157bde357f3bd33768686a46e387 /pkgs/desktops/gnome-3/3.12/misc/gpaste
parent3d0dc6a143324f0055af8e224fc1272949eee297 (diff)
downloadnixpkgs-dfbc9ff78123f750e8c8782d10b2271a8062bc4a.tar
nixpkgs-dfbc9ff78123f750e8c8782d10b2271a8062bc4a.tar.gz
nixpkgs-dfbc9ff78123f750e8c8782d10b2271a8062bc4a.tar.bz2
nixpkgs-dfbc9ff78123f750e8c8782d10b2271a8062bc4a.tar.lz
nixpkgs-dfbc9ff78123f750e8c8782d10b2271a8062bc4a.tar.xz
nixpkgs-dfbc9ff78123f750e8c8782d10b2271a8062bc4a.tar.zst
nixpkgs-dfbc9ff78123f750e8c8782d10b2271a8062bc4a.zip
gpaste: new package
Clipboard management system with GNOME3 integration

https://github.com/Keruspe/GPaste
Diffstat (limited to 'pkgs/desktops/gnome-3/3.12/misc/gpaste')
-rw-r--r--pkgs/desktops/gnome-3/3.12/misc/gpaste/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome-3/3.12/misc/gpaste/default.nix b/pkgs/desktops/gnome-3/3.12/misc/gpaste/default.nix
new file mode 100644
index 00000000000..56a5f18544f
--- /dev/null
+++ b/pkgs/desktops/gnome-3/3.12/misc/gpaste/default.nix
@@ -0,0 +1,44 @@
+{ stdenv, fetchurl, intltool, autoreconfHook, pkgconfig, vala, glib
+, pango, gtk3, gnome3, dbus, clutter, appdata-tools, makeWrapper }:
+
+stdenv.mkDerivation rec {
+  version = "3.12.2";
+  name = "gpaste-${version}";
+
+  src = fetchurl {
+    url = "https://github.com/Keruspe/GPaste/archive/v${version}.tar.gz";
+    sha256 = "665c1d228c02148a8a1a5675d352cd4397a02c0c9992af2e9f0258dcc6b812ec";
+  };
+
+  buildInputs = [ intltool autoreconfHook pkgconfig vala glib
+                  gtk3 gnome3.gnome_control_center dbus.libs
+                  clutter pango appdata-tools makeWrapper ];
+
+  preConfigure = "intltoolize -f";
+
+  configureFlags = [ "--with-controlcenterdir=$(out)/gnome-control-center/keybindings"
+                     "--with-dbusservicesdir=$(out)/share/dbus-1/services" ];
+
+  enableParallelBuilding = true;
+
+  preFixup = 
+    let
+      libPath = stdenv.lib.makeLibraryPath
+        [ glib gtk3 clutter pango ];
+    in
+    ''
+      for i in $out/libexec/gpaste/*; do
+        wrapProgram $i \
+          --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
+          --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
+          --prefix LD_LIBRARY_PATH : "${libPath}"
+      done
+    '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/Keruspe/GPaste;
+    description = "Clipboard management system with GNOME3 integration";
+    license = licenses.gpl3;
+    platforms = platforms.linux;
+  };
+}