gnome3.gnome-control-center: fix build
This commit is contained in:
parent
3a551ca7b0
commit
bf8b2afcca
@ -1,24 +1,25 @@
|
||||
{ fetchurl, stdenv, substituteAll, pkgconfig, gnome3, ibus, intltool, upower, wrapGAppsHook
|
||||
{ fetchurl, stdenv, substituteAll, meson, ninja, pkgconfig, gnome3, ibus, gettext, upower, wrapGAppsHook
|
||||
, libcanberra-gtk3, accountsservice, libpwquality, libpulseaudio
|
||||
, gdk_pixbuf, librsvg, libnotify, libgudev, gnome-color-manager
|
||||
, libxml2, polkit, libxslt, libgtop, libsoup, colord, colord-gtk
|
||||
, cracklib, libkrb5, networkmanagerapplet, networkmanager, glibc
|
||||
, libwacom, samba, shared-mime-info, tzdata, libtool, libgnomekbd
|
||||
, docbook_xsl, docbook_xsl_ns, modemmanager, clutter, clutter-gtk
|
||||
, docbook_xsl, modemmanager, clutter, clutter-gtk, cheese
|
||||
, fontconfig, sound-theme-freedesktop, grilo }:
|
||||
|
||||
let
|
||||
pname = "gnome-control-center";
|
||||
version = "3.28.0";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "gnome-control-center-${version}";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/gnome-control-center/${gnome3.versionBranch version}/${name}.tar.xz";
|
||||
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
||||
sha256 = "0nyx5nl2rky0249rdcy0hsccnxf3angpya0q859rrbrwaixqnxh3";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig intltool wrapGAppsHook libtool libxslt docbook_xsl docbook_xsl_ns
|
||||
meson ninja pkgconfig gettext wrapGAppsHook libtool libxslt docbook_xsl
|
||||
shared-mime-info
|
||||
];
|
||||
|
||||
@ -28,7 +29,7 @@ in stdenv.mkDerivation rec {
|
||||
gnome-online-accounts libsoup colord libpulseaudio fontconfig colord-gtk
|
||||
accountsservice libkrb5 networkmanagerapplet libwacom samba libnotify
|
||||
grilo libpwquality cracklib vino libcanberra-gtk3 libgudev
|
||||
gdk_pixbuf defaultIconTheme librsvg clutter clutter-gtk
|
||||
gdk_pixbuf defaultIconTheme librsvg clutter clutter-gtk cheese
|
||||
networkmanager modemmanager gnome-bluetooth tracker
|
||||
];
|
||||
|
||||
@ -40,6 +41,11 @@ in stdenv.mkDerivation rec {
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x meson_post_install.py # patchShebangs requires executable file
|
||||
patchShebangs meson_post_install.py
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix XDG_DATA_DIRS : "${gnome3.gnome-themes-standard}/share:${sound-theme-freedesktop}/share"
|
||||
@ -48,14 +54,14 @@ in stdenv.mkDerivation rec {
|
||||
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
||||
)
|
||||
for i in $out/share/applications/*; do
|
||||
substituteInPlace $i --replace "gnome-control-center" "$out/bin/gnome-control-center"
|
||||
substituteInPlace $i --replace "Exec=gnome-control-center" "Exec=$out/bin/gnome-control-center"
|
||||
done
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = "gnome-control-center";
|
||||
attrPath = "gnome3.gnome-control-center";
|
||||
packageName = pname;
|
||||
attrPath = "gnome3.${pname}";
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user