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

48 lines
1.8 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, gobjectIntrospection }:
stdenv.mkDerivation rec {
gnome3.gpaste: 3.28.1 -> 3.28.2 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/gpaste/versions. These checks were done: - built on NixOS - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client -h’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client --help’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client help’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client -v’ and found version 3.28.2 - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client --version’ and found version 3.28.2 - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client version’ and found version 3.28.2 - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped -h’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped --help’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped help’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped -v’ and found version 3.28.2 - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped --version’ and found version 3.28.2 - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped version’ and found version 3.28.2 - found 3.28.2 with grep in /nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2 - directory tree listing: https://gist.github.com/528b9d74e22700cfa3bb92a21baa9f09
2018-04-20 13:18:03 +01:00
version = "3.28.2";
name = "gpaste-${version}";
src = fetchurl {
url = "https://github.com/Keruspe/GPaste/archive/v${version}.tar.gz";
gnome3.gpaste: 3.28.1 -> 3.28.2 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/gpaste/versions. These checks were done: - built on NixOS - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client -h’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client --help’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client help’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client -v’ and found version 3.28.2 - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client --version’ and found version 3.28.2 - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/gpaste-client version’ and found version 3.28.2 - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped -h’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped --help’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped help’ got 0 exit code - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped -v’ and found version 3.28.2 - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped --version’ and found version 3.28.2 - ran ‘/nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2/bin/.gpaste-client-wrapped version’ and found version 3.28.2 - found 3.28.2 with grep in /nix/store/qaadzk12f4bcqas0x09h89w74r6s740z-gpaste-3.28.2 - directory tree listing: https://gist.github.com/528b9d74e22700cfa3bb92a21baa9f09
2018-04-20 13:18:03 +01:00
sha256 = "1zfx73qpw976hyzp5k569lywsq2b6dbnnzf2cvhjvn3mvkw8pin2";
};
patches = [
./fix-paths.patch
];
# TODO: switch to substituteAll with placeholder
# https://github.com/NixOS/nix/issues/1846
# https://github.com/NixOS/nixpkgs/pull/37693
postPatch = ''
substituteInPlace src/gnome-shell/extension.js \
--subst-var-by typelibPath "$out/lib/girepository-1.0"
substituteInPlace src/gnome-shell/prefs.js \
--subst-var-by typelibPath "$out/lib/girepository-1.0"
substituteInPlace src/libgpaste/settings/gpaste-settings.c \
--subst-var-by gschemasCompiled "$out/share/gsettings-schemas/${name}/glib-2.0/schemas"
'';
2017-09-02 16:37:07 +01:00
nativeBuildInputs = [ autoreconfHook pkgconfig vala wrapGAppsHook ];
2017-09-03 16:26:51 +01:00
buildInputs = [ glib gjs mutter gnome3.adwaita-icon-theme
gtk3 gnome3.gnome-control-center dbus
2017-09-02 16:37:07 +01:00
clutter pango appstream-glib systemd gobjectIntrospection ];
configureFlags = [ "--with-controlcenterdir=$(out)/share/gnome-control-center/keybindings"
"--with-dbusservicesdir=$(out)/share/dbus-1/services"
"--with-systemduserunitdir=$(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;
};
}