3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/misc/gpaste/default.nix

52 lines
1.7 KiB
Nix
Raw Normal View History

2017-09-02 16:37:07 +01:00
{ stdenv, fetchurl, autoreconfHook, pkgconfig, vala, glib, gjs, mutter
, pango, gtk3, gnome3, dbus, clutter, appstream-glib, wrapGAppsHook, systemd, gobject-introspection }:
stdenv.mkDerivation rec {
2018-09-12 19:28:23 +01:00
version = "3.30.2";
name = "gpaste-${version}";
src = fetchurl {
url = "https://github.com/Keruspe/GPaste/archive/v${version}.tar.gz";
2018-09-12 19:28:23 +01:00
sha256 = "0vlbvv6rjxq7h9cl3ilndjk7d51ac1x7agj8k6a7bwjx8h1fr62x";
};
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"
substituteInPlace src/gnome-shell/prefs.js \
2018-09-12 19:28:23 +01:00
--subst-var-by typelibPath "${placeholder "out"}/lib/girepository-1.0"
substituteInPlace src/libgpaste/settings/gpaste-settings.c \
2018-09-12 19:28:23 +01:00
--subst-var-by gschemasCompiled "${placeholder "out"}/share/gsettings-schemas/${name}/glib-2.0/schemas"
'';
2018-09-12 19:28:23 +01:00
nativeBuildInputs = [
autoreconfHook pkgconfig vala appstream-glib wrapGAppsHook
];
buildInputs = [
glib gjs mutter gtk3 dbus
clutter pango gobject-introspection
2018-09-12 19:28: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"
];
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;
};
}