2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, vala, glib, gjs, mutter
|
|
|
|
, pango, gtk3, gnome3, dbus, clutter, appstream-glib, wrapGAppsHook, gobject-introspection }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-12 16:39:12 +00:00
|
|
|
version = "3.32.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gpaste";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Keruspe/GPaste/archive/v${version}.tar.gz";
|
2019-03-12 16:39:12 +00:00
|
|
|
sha256 = "1fvpl9vqmrr1w22hm0ybabn9pjfii5qj9ghnc2jzihgrn2h486v6";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2018-07-23 03:11:03 +01:00
|
|
|
patches = [
|
|
|
|
./fix-paths.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
# TODO: switch to substituteAll with placeholder
|
|
|
|
# https://github.com/NixOS/nix/issues/1846
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/gnome-shell/extension.js \
|
2018-09-12 19:28:23 +01:00
|
|
|
--subst-var-by typelibPath "${placeholder "out"}/lib/girepository-1.0"
|
2018-07-23 03:11:03 +01:00
|
|
|
substituteInPlace src/gnome-shell/prefs.js \
|
2018-09-12 19:28:23 +01:00
|
|
|
--subst-var-by typelibPath "${placeholder "out"}/lib/girepository-1.0"
|
2018-07-23 03:11:03 +01:00
|
|
|
substituteInPlace src/libgpaste/settings/gpaste-settings.c \
|
2019-08-27 19:25:43 +01:00
|
|
|
--subst-var-by gschemasCompiled ${glib.makeSchemaPath (placeholder "out") "${pname}-${version}"}
|
2018-07-23 03:11:03 +01:00
|
|
|
'';
|
|
|
|
|
2018-09-12 19:28:23 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook pkgconfig vala appstream-glib wrapGAppsHook
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
glib gjs mutter gtk3 dbus
|
2018-12-02 11:41:15 +00:00
|
|
|
clutter pango gobject-introspection
|
2018-09-12 19:28:23 +01:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-09-12 19:28:23 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-controlcenterdir=${placeholder "out"}/share/gnome-control-center/keybindings"
|
|
|
|
"--with-dbusservicesdir=${placeholder "out"}/share/dbus-1/services"
|
|
|
|
"--with-systemduserunitdir=${placeholder "out"}/etc/systemd/user"
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|