mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
tree-wide: replace wrapProgram with wrapGApp
where appropriate
This commit is contained in:
parent
9d152886ab
commit
9b6789de73
@ -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 = {
|
||||
|
@ -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
|
||||
'';
|
||||
|
@ -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 = {
|
||||
|
@ -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
|
||||
|
@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
|
||||
sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \
|
||||
-i $file
|
||||
|
||||
wrapProgram $file "''${gappsWrapperArgs[@]}"
|
||||
wrapGApp "$file"
|
||||
done
|
||||
'';
|
||||
|
||||
|
@ -76,8 +76,8 @@ stdenv.mkDerivation rec {
|
||||
postFixup = ''
|
||||
# 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
|
||||
echo "Wrapping program ''${file}"
|
||||
wrapProgram "''${file}" "''${gappsWrapperArgs[@]}"
|
||||
echo "Wrapping program $file"
|
||||
wrapGApp "$file"
|
||||
done
|
||||
'';
|
||||
|
||||
|
@ -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
|
||||
'';
|
||||
|
@ -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"
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user