nixpkgs/pkgs/desktops/gnome-3/3.18/misc/gpaste/default.nix

45 lines
1.4 KiB
Nix
Raw Normal View History

2015-09-25 10:36:01 +02:00
{ stdenv, fetchurl, intltool, autoreconfHook, pkgconfig, vala, glib
, pango, gtk3, gnome3, dbus, clutter, appstream-glib, makeWrapper }:
stdenv.mkDerivation rec {
2016-01-20 17:13:31 +01:00
version = "${gnome3.version}.3";
2015-09-25 10:36:01 +02:00
name = "gpaste-${version}";
src = fetchurl {
url = "https://github.com/Keruspe/GPaste/archive/v${version}.tar.gz";
2016-01-20 17:13:31 +01:00
sha256 = "1fyrdgsn4m3fh8450qcic243sl7llfs44cdbspwpn5zb4h2hk8rj";
2015-09-25 10:36:01 +02:00
};
buildInputs = [ intltool autoreconfHook pkgconfig vala glib
gtk3 gnome3.gnome_control_center dbus
2015-09-25 10:36:01 +02:00
clutter pango appstream-glib 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"
done
'';
meta = with stdenv.lib; {
homepage = https://github.com/Keruspe/GPaste;
description = "Clipboard management system with GNOME3 integration";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = gnome3.maintainers;
};
}