deja-dup: clean up
This commit is contained in:
parent
b7dd2ef91d
commit
dd556b02ba
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, meson, ninja, pkgconfig, vala_0_38, gettext
|
{ stdenv, fetchurl, substituteAll, meson, ninja, pkgconfig, vala_0_40, gettext
|
||||||
, gnome3, libnotify, intltool, itstool, glib, gtk3, libxml2
|
, gnome3, libnotify, itstool, glib, gtk3, libxml2
|
||||||
, coreutils, libsecret, pcre, libxkbcommon, wrapGAppsHook
|
, coreutils, libsecret, pcre, libxkbcommon, wrapGAppsHook
|
||||||
, libpthreadstubs, libXdmcp, epoxy, at-spi2-core, dbus, libgpgerror
|
, libpthreadstubs, libXdmcp, epoxy, at-spi2-core, dbus, libgpgerror
|
||||||
, appstream-glib, desktop-file-utils, duplicity
|
, appstream-glib, desktop-file-utils, duplicity
|
||||||
@ -15,20 +15,14 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./fix-paths.patch
|
(substituteAll {
|
||||||
|
src = ./fix-paths.patch;
|
||||||
|
inherit coreutils;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace libdeja/tools/duplicity/DuplicityInstance.vala --replace \
|
|
||||||
"/bin/rm" \
|
|
||||||
"${coreutils}/bin/rm"
|
|
||||||
'';
|
|
||||||
|
|
||||||
# couldn't find gio/gdesktopappinfo.h
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson ninja pkgconfig vala_0_38 gettext intltool itstool
|
meson ninja pkgconfig vala_0_40 gettext itstool
|
||||||
appstream-glib desktop-file-utils libxml2 wrapGAppsHook
|
appstream-glib desktop-file-utils libxml2 wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -40,6 +34,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
propagatedUserEnvPkgs = [ duplicity ];
|
propagatedUserEnvPkgs = [ duplicity ];
|
||||||
|
|
||||||
|
PKG_CONFIG_LIBNAUTILUS_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/lib/nautilus/extensions-3.0";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
glib-compile-schemas $out/share/glib-2.0/schemas
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
||||||
'';
|
'';
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
diff --git a/deja-dup/nautilus/meson.build b/deja-dup/nautilus/meson.build
|
--- a/libdeja/tools/duplicity/DuplicityInstance.vala
|
||||||
index 04b136f3..ed8f7cba 100644
|
+++ b/libdeja/tools/duplicity/DuplicityInstance.vala
|
||||||
--- a/deja-dup/nautilus/meson.build
|
@@ -159,7 +159,7 @@
|
||||||
+++ b/deja-dup/nautilus/meson.build
|
// We already are pretty sure we don't have other duplicities in our
|
||||||
@@ -31,6 +31,6 @@ shared_module('deja-dup', ['NautilusExtension.c'],
|
// archive directories, because we use our own and we ensure we only have
|
||||||
link_with: [dirhandling],
|
// one deja-dup running at a time via DBus.
|
||||||
dependencies: [nautilus_dep],
|
- Posix.system("/bin/rm -f " + Shell.quote(cache_dir) + "/*/lockfile.lock");
|
||||||
install: true,
|
+ Posix.system("@coreutils@/bin/rm -f " + Shell.quote(cache_dir) + "/*/lockfile.lock");
|
||||||
- install_dir: nautilus_dep.get_pkgconfig_variable('extensiondir'))
|
|
||||||
+ install_dir: join_paths(get_option('libdir'), 'nautilus', 'extensions-3.0'))
|
|
||||||
|
|
||||||
endif
|
Process.spawn_async_with_pipes(null, real_argv, real_envp,
|
||||||
|
SpawnFlags.SEARCH_PATH |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user