tree-wide: replace wrapProgram with wrapGApp
where appropriate
This commit is contained in:
parent
9d152886ab
commit
9b6789de73
pkgs
applications
desktops
os-specific/linux/firmware/fwupd
tools/graphics/zbar
@ -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 = {
|
||||||
|
@ -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
|
||||||
'';
|
'';
|
||||||
|
@ -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 = {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -76,8 +76,8 @@ stdenv.mkDerivation rec {
|
|||||||
postFixup = ''
|
postFixup = ''
|
||||||
# Let’s wrap the daemons
|
# Let’s 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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -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
|
||||||
'';
|
'';
|
||||||
|
@ -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"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user