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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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