@@ -1,5 +1,5 @@
1−{ stdenv, fetchurl, autoreconfHook, pkgconfig, vala_0_32, glib, gjs, mutter
2−, pango, gtk3, gnome3, dbus, clutter, appstream-glib, makeWrapper, systemd, gobjectIntrospection }:
1+{ stdenv, fetchurl, autoreconfHook, pkgconfig, vala, glib, gjs, mutter
2+, pango, gtk3, gnome3, dbus, clutter, appstream-glib, wrapGAppsHook, systemd, gobjectIntrospection }:
33
44stdenv.mkDerivation rec {
55 version = "3.24.2";
@@ -10,9 +10,10 @@ stdenv.mkDerivation rec {
1010 sha256 = "16142jfpkz8qfs7zp9k3c5l9pnvxbr5yygj8jdpx6by1142s6340";
1111 };
1212
13− buildInputs = [ autoreconfHook pkgconfig vala_0_32 glib gjs mutter
13+ nativeBuildInputs = [ autoreconfHook pkgconfig vala wrapGAppsHook ];
14+ buildInputs = [ glib gjs mutter gnome3.adwaita-icon-theme
1415 gtk3 gnome3.gnome_control_center dbus
15− clutter pango appstream-glib makeWrapper systemd gobjectIntrospection ];
16+ clutter pango appstream-glib systemd gobjectIntrospection ];
1617
1718 configureFlags = [ "--with-controlcenterdir=$(out)/gnome-control-center/keybindings"
1819 "--with-dbusservicesdir=$(out)/share/dbus-1/services"
@@ -20,19 +21,6 @@ stdenv.mkDerivation rec {
2021
2122 enableParallelBuilding = true;
2223
23− preFixup =
24− let
25− libPath = stdenv.lib.makeLibraryPath
26− [ glib gtk3 clutter pango ];
27− in
28− ''
29− for i in $out/libexec/gpaste/*; do
30− wrapProgram $i \
31− --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
32− --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH"
33− done
34− '';
35−
3624 meta = with stdenv.lib; {
3725 homepage = https://github.com/Keruspe/GPaste;
3826 description = "Clipboard management system with GNOME3 integration";