6 , gobject-introspection
20 stdenv.mkDerivation (finalAttrs: {
25 url = "https://www.imagination-land.org/files/gpaste/GPaste-${finalAttrs.version}.tar.xz";
26 hash = "sha256-2WC0FGPQisY3YH4EgJcR/Re69fJznUD1KlCGljivyEE=";
33 # TODO: switch to substituteAll with placeholder
34 # https://github.com/NixOS/nix/issues/1846
36 substituteInPlace src/libgpaste/gpaste/gpaste-settings.c \
37 --subst-var-by gschemasCompiled ${glib.makeSchemaPath (placeholder "out") "${finalAttrs.pname}-${finalAttrs.version}"}
61 "-Dcontrol-center-keybindings-dir=${placeholder "out"}/share/gnome-control-center/keybindings"
62 "-Ddbus-services-dir=${placeholder "out"}/share/dbus-1/services"
63 "-Dsystemd-user-unit-dir=${placeholder "out"}/etc/systemd/user"
67 # We do not have central location to install typelibs to,
68 # let’s ensure GNOME Shell can still find them.
69 extensionDir="$out/share/gnome-shell/extensions/GPaste@gnome-shell-extensions.gnome.org"
70 mv "$extensionDir/"{extension,.extension-wrapped}.js
71 mv "$extensionDir/"{prefs,.prefs-wrapped}.js
72 substitute "${./wrapper.js}" "$extensionDir/extension.js" \
73 --subst-var-by originalName "extension" \
74 --subst-var-by typelibPath "${placeholder "out"}/lib/girepository-1.0"
75 substitute "${./wrapper.js}" "$extensionDir/prefs.js" \
76 --subst-var-by originalName "prefs" \
77 --subst-var-by typelibPath "${placeholder "out"}/lib/girepository-1.0"
81 homepage = "https://github.com/Keruspe/GPaste";
82 changelog = "https://github.com/Keruspe/GPaste/blob/v${finalAttrs.version}/NEWS";
83 description = "Clipboard management system with GNOME integration";
84 mainProgram = "gpaste-client";
85 license = licenses.bsd2;
86 platforms = platforms.linux;
87 maintainers = teams.gnome.members;