Skip to content

Commit

Permalink
gnome3.gnome-desktop: use substituteAll for patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Aug 25, 2018
1 parent b47e4e7 commit 6e2c115
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pkgs/desktops/gnome-3/core/gnome-desktop/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, libxslt, which, libX11, gnome3, gtk3, glib
{ stdenv, fetchurl, substituteAll, pkgconfig, libxslt, which, libX11, gnome3, gtk3, glib
, intltool, libxml2, xkeyboard_config, isocodes, itstool, wayland
, libseccomp, bubblewrap, gobjectIntrospection, gtk-doc, docbook_xsl }:

Expand Down Expand Up @@ -30,18 +30,16 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ gnome3.gsettings-desktop-schemas ];

patches = [
./bubblewrap-paths.patch
(substituteAll {
src = ./bubblewrap-paths.patch;
BUBBLEWRAP_BIN = "${bubblewrap}/bin/bwrap";
})
];

configureFlags = [
"--enable-gtk-doc"
];

postPatch = ''
substituteInPlace libgnome-desktop/gnome-desktop-thumbnail-script.c --subst-var-by \
BUBBLEWRAP_BIN "${bubblewrap}/bin/bwrap"
'';

passthru = {
updateScript = gnome3.updateScript {
packageName = "gnome-desktop";
Expand Down

0 comments on commit 6e2c115

Please sign in to comment.