tree-wide: replace wrapProgram with wrapGApp

where appropriate
This commit is contained in:
Jan Tojnar 2019-09-10 08:13:10 +02:00
parent 9d152886ab
commit 9b6789de73
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
8 changed files with 14 additions and 12 deletions
pkgs
applications
graphics/gnome-photos
misc/mysql-workbench
science/electronics/kicad
desktops
deepin/dde-daemon
gnome-3
apps/gnome-characters
extensions/gsconnect
os-specific/linux/firmware/fwupd
tools/graphics/zbar

View File

@ -102,7 +102,7 @@ stdenv.mkDerivation rec {
''; '';
postFixup = '' postFixup = ''
wrapProgram "${placeholder "installedTests"}/libexec/installed-tests/gnome-photos/basic.py" "''${gappsWrapperArgs[@]}" wrapGApp "${placeholder "installedTests"}/libexec/installed-tests/gnome-photos/basic.py"
''; '';
passthru = { passthru = {

View File

@ -85,8 +85,8 @@ in stdenv.mkDerivation rec {
find -L "$out/bin" -type f -executable -print0 \ find -L "$out/bin" -type f -executable -print0 \
| while IFS= read -r -d ''' file; do | while IFS= read -r -d ''' file; do
if [[ "''${file}" != *-bin ]]; then if [[ "''${file}" != *-bin ]]; then
echo "Wrapping program ''${file}" echo "Wrapping program $file"
wrapProgram "''${file}" "''${gappsWrapperArgs[@]}" wrapGApp "$file"
fi fi
done done
''; '';

View File

@ -107,7 +107,7 @@ in stdenv.mkDerivation rec {
buildPythonPath "$out $pythonPath" buildPythonPath "$out $pythonPath"
gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH") gappsWrapperArgs+=(--set PYTHONPATH "$program_PYTHONPATH")
wrapProgram "$out/bin/kicad" "''${gappsWrapperArgs[@]}" wrapGApp "$out/bin/kicad"
''; '';
meta = { meta = {

View File

@ -115,7 +115,7 @@ buildGoPackage rec {
postFixup = '' postFixup = ''
# wrapGAppsHook does not work with binaries outside of $out/bin or $out/libexec # wrapGAppsHook does not work with binaries outside of $out/bin or $out/libexec
for binary in $out/lib/deepin-daemon/*; do for binary in $out/lib/deepin-daemon/*; do
wrapProgram $binary "''${gappsWrapperArgs[@]}" wrapGApp "$binary"
done done
searchHardCodedPaths $out # debugging searchHardCodedPaths $out # debugging

View File

@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \ sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \
-i $file -i $file
wrapProgram $file "''${gappsWrapperArgs[@]}" wrapGApp "$file"
done done
''; '';

View File

@ -76,8 +76,8 @@ stdenv.mkDerivation rec {
postFixup = '' postFixup = ''
# Lets wrap the daemons # Lets wrap the daemons
for file in $out/share/gnome-shell/extensions/gsconnect@andyholmes.github.io/service/{{daemon,nativeMessagingHost}.js,components/folks.py}; do for file in $out/share/gnome-shell/extensions/gsconnect@andyholmes.github.io/service/{{daemon,nativeMessagingHost}.js,components/folks.py}; do
echo "Wrapping program ''${file}" echo "Wrapping program $file"
wrapProgram "''${file}" "''${gappsWrapperArgs[@]}" wrapGApp "$file"
done done
''; '';

View File

@ -237,9 +237,9 @@ stdenv.mkDerivation rec {
postFixup = '' postFixup = ''
find -L "$out/bin" "$out/libexec" -type f -executable -print0 \ find -L "$out/bin" "$out/libexec" -type f -executable -print0 \
| while IFS= read -r -d ''' file; do | while IFS= read -r -d ''' file; do
if [[ "''${file}" != *.efi ]]; then if [[ "$file" != *.efi ]]; then
echo "Wrapping program ''${file}" echo "Wrapping program $file"
wrapProgram "''${file}" "''${gappsWrapperArgs[@]}" wrapGApp "$file"
fi fi
done done
''; '';

View File

@ -8,6 +8,7 @@
, qtbase , qtbase
, qtx11extras , qtx11extras
, wrapQtAppsHook , wrapQtAppsHook
, wrapGAppsHook
, gtk3 , gtk3
, xmlto , xmlto
, docbook_xsl , docbook_xsl
@ -36,6 +37,7 @@ stdenv.mkDerivation rec {
autoreconfHook autoreconfHook
docbook_xsl docbook_xsl
wrapQtAppsHook wrapQtAppsHook
wrapGAppsHook
]; ];
buildInputs = [ buildInputs = [
@ -68,7 +70,7 @@ stdenv.mkDerivation rec {
dontWrapGApps = true; dontWrapGApps = true;
postFixup = lib.optionalString enableVideo '' postFixup = lib.optionalString enableVideo ''
wrapProgram "$out/bin/zbarcam-gtk" "''${gappsWrapperArgs[@]}" wrapGApp "$out/bin/zbarcam-gtk"
wrapQtApp "$out/bin/zbarcam-qt" wrapQtApp "$out/bin/zbarcam-qt"
''; '';