skypeforlinux: add gsettings schemas
cherry-picked and squashed from https://github.com/NixOS/nixpkgs/pull/44652
This commit is contained in:
parent
ff0a101808
commit
3b2f3e59d1
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, dpkg, makeWrapper
|
{ stdenv, fetchurl, dpkg
|
||||||
, alsaLib, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, gdk_pixbuf, glib, glibc, gnome2, gnome3
|
, alsaLib, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, gdk_pixbuf, glib, glibc, gnome2, gnome3
|
||||||
, gtk3, libnotify, libpulseaudio, libsecret, libv4l, nspr, nss, pango, systemd, xorg }:
|
, gtk3, libnotify, libpulseaudio, libsecret, libv4l, nspr, nss, pango, systemd, wrapGAppsHook, xorg }:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
@ -68,7 +68,12 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
inherit src;
|
inherit src;
|
||||||
|
|
||||||
buildInputs = [ dpkg makeWrapper ];
|
nativeBuildInputs = [
|
||||||
|
wrapGAppsHook
|
||||||
|
glib # For setup hook populating GSETTINGS_SCHEMA_PATH
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [ dpkg ];
|
||||||
|
|
||||||
unpackPhase = "true";
|
unpackPhase = "true";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -90,6 +95,10 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
ln -s "$out/share/skypeforlinux/skypeforlinux" "$out/bin/skypeforlinux"
|
ln -s "$out/share/skypeforlinux/skypeforlinux" "$out/bin/skypeforlinux"
|
||||||
|
|
||||||
|
wrapProgram $out/bin/skypeforlinux \
|
||||||
|
--suffix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
||||||
|
|
||||||
|
|
||||||
# Fix the desktop link
|
# Fix the desktop link
|
||||||
substituteInPlace $out/share/applications/skypeforlinux.desktop \
|
substituteInPlace $out/share/applications/skypeforlinux.desktop \
|
||||||
--replace /usr/bin/ $out/bin/ \
|
--replace /usr/bin/ $out/bin/ \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user