Skip to content

Commit

Permalink
treewide: avoid double wrapping with python3Packages and wrapGAppsHook
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa committed Apr 13, 2024
1 parent 7fe12a4 commit 375df48
Show file tree
Hide file tree
Showing 85 changed files with 506 additions and 32 deletions.
6 changes: 6 additions & 0 deletions pkgs/applications/audio/blanket/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ python3Packages.buildPythonApplication rec {
--replace gtk-update-icon-cache gtk4-update-icon-cache
'';

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
homepage = "https://github.com/rafaelmardojai/blanket";
description = "Listen to different sounds";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/audio/easyabc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ in python.pkgs.buildPythonApplication {
runHook postInstall
'';

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = {
description = "ABC music notation editor";
mainProgram = "easyabc";
Expand Down
9 changes: 8 additions & 1 deletion pkgs/applications/audio/gpodder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@ python3Packages.buildPythonApplication rec {
LC_ALL=C PYTHONPATH=src/:$PYTHONPATH pytest tests --ignore=src/gpodder/utilwin32ctypes.py --ignore=src/mygpoclient --cov=gpodder
'';

makeWrapperArgs = [ "--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}" ];
dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=(
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
"''${gappsWrapperArgs[@]}"
)
'';

passthru.updateScript = gitUpdater {};

Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/audio/gspeech/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ python3.pkgs.buildPythonApplication rec {
install -Dm444 icons/*.svg -t $out/share/icons/hicolor/scalable/apps
'';

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

postFixup = ''
wrapProgram $out/bin/gspeech --prefix PATH : ${lib.makeBinPath [ picotts sox ]}
wrapProgram $out/bin/gspeech-cli --prefix PATH : ${lib.makeBinPath [ picotts sox ]}
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/audio/hushboard/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ buildPythonApplication {
# There are no tests
doCheck = false;

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
homepage = "https://kryogenix.org/code/hushboard/";
license = licenses.mit;
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/audio/indicator-sound-switcher/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ python3Packages.buildPythonApplication rec {
keybinder3
];

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
description = "Sound input/output selector indicator for Linux";
mainProgram = "indicator-sound-switcher";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/audio/pithos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ pythonPackages.buildPythonApplication rec {
(with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad ]) ++
(with pythonPackages; [ pygobject3 pylast ]);

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
broken = stdenv.isDarwin;
description = "Pandora Internet Radio player for GNOME";
Expand Down
6 changes: 5 additions & 1 deletion pkgs/applications/audio/quodlibet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ python3.pkgs.buildPythonApplication rec {
runHook postCheck
'';

dontWrapGApps = true;

preFixup = lib.optionalString (kakasi != null) ''
gappsWrapperArgs+=(--prefix PATH : ${kakasi}/bin)
makeWrapperArgs+=(--prefix PATH : ${kakasi}/bin)
'' + ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/audio/sonata/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ in buildPythonApplication rec {
sed -i '/localmpd/d' sonata/consts.py
'';

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = {
description = "An elegant client for the Music Player Daemon";
mainProgram = "sonata";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/audio/soundconverter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ python3Packages.buildPythonApplication rec {
# Necessary to set GDK_PIXBUF_MODULE_FILE.
strictDeps = false;

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
homepage = "https://soundconverter.org/";
description = "Leading audio file converter for the GNOME Desktop";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/audio/sublime-music/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ python.pkgs.buildPythonApplication rec {
done
'';

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
description = "GTK3 Subsonic/Airsonic client";
mainProgram = "sublime-music";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/editors/formiko/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ buildPythonApplication rec {
# Needs a display
doCheck = false;

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
description = "reStructuredText editor and live previewer";
homepage = "https://github.com/ondratu/formiko";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/editors/setzer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ python3.pkgs.buildPythonApplication rec {
meson test --print-errorlogs
'';

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
description = "LaTeX editor written in Python with Gtk";
mainProgram = "setzer";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/graphics/drawing/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ python3.pkgs.buildPythonApplication rec {

strictDeps = false;

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
description = "A free basic image editor, similar to Microsoft Paint, but aiming at the GNOME desktop";
mainProgram = "drawing";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/graphics/gscreenshot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ python3Packages.buildPythonApplication rec {

patches = [ ./0001-Changing-paths-to-be-nix-compatible.patch ];

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = {
description = "A screenshot frontend (CLI and GUI) for a variety of screenshot backends";

Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/graphics/mypaint/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ in buildPythonApplication rec {
runHook postCheck
'';

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
description = "A graphics application for digital painters";
homepage = "http://mypaint.org/";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/graphics/pick-colour-picker/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ buildPythonPackage rec {
gtk3
];

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
homepage = "https://kryogenix.org/code/pick/";
license = licenses.mit;
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/misc/caerbannog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ python3.pkgs.buildPythonApplication rec {
pygobject3
];

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
description = "Mobile-friendly Gtk frontend for password-store";
mainProgram = "caerbannog";
Expand Down
11 changes: 8 additions & 3 deletions pkgs/applications/misc/diffuse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ python3.pkgs.buildPythonApplication rec {
# to avoid running gtk-update-icon-cache, update-desktop-database and glib-compile-schemas
DESTDIR = "/";

makeWrapperArgs = [
"--prefix XDG_DATA_DIRS : ${hicolor-icon-theme}/share"
];
dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
--prefix XDG_DATA_DIRS : ${hicolor-icon-theme}/share
)
'';

passthru = {
updateScript = gitUpdater {
Expand Down
13 changes: 10 additions & 3 deletions pkgs/applications/misc/fluxboxlauncher/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ python3.pkgs.buildPythonApplication rec {
fluxbox
];

makeWrapperArgs = [ "--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive"
"--set CHARSET en_us.UTF-8" ];

propagatedBuildInputs = with python3.pkgs; [
pygobject3
];
Expand All @@ -51,6 +48,16 @@ python3.pkgs.buildPythonApplication rec {
install -Dm444 fluxboxlauncher.svg -t $out/share/icons/hicolor/scalable/apps
'';

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
--set LOCALE_ARCHIVE ${glibcLocales}/lib/locale/locale-archive
--set CHARSET en_us.UTF-8
)
'';

meta = with lib; {
description = "A Gui editor (gtk) to configure applications launching on a fluxbox session";
mainProgram = "fluxboxlauncher";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/misc/kupfer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ buildPythonApplication rec {

doCheck = false; # no tests

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
description = "A smart, quick launcher";
homepage = "https://kupferlauncher.github.io/";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/misc/metadata-cleaner/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ python3.pkgs.buildPythonApplication rec {
pygobject3
];

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
description = "Python GTK application to view and clean metadata in files, using mat2";
mainProgram = "metadata-cleaner";
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/misc/minigalaxy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ python3Packages.buildPythonApplication rec {
webkitgtk
];

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

# Run Linux games using the Steam Runtime by using steam-run in the wrapper
# FIXME: not working with makeBinaryWrapper
postFixup = ''
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/misc/nwg-wrapper/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ python3Packages.buildPythonPackage rec {
# No tests
doCheck = false;

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/misc/onboard/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ python3.pkgs.buildPythonApplication rec {
glib-compile-schemas $out/share/glib-2.0/schemas/
'';

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

# Remove ubuntu icons.
postFixup = ''
rm -rf $out/share/icons/ubuntu-mono-*
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/misc/orca/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ buildPythonApplication rec {
gst_all_1.gst-plugins-good
];

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

passthru = {
updateScript = gnome.updateScript {
packageName = pname;
Expand Down
6 changes: 6 additions & 0 deletions pkgs/applications/misc/pdf-quench/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ python3.pkgs.buildPythonApplication {
install -D -T -m 755 src/pdf_quench.py $out/bin/pdf-quench
'';

dontWrapGApps = true;

preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';

meta = with lib; {
homepage = "https://github.com/linuxerwang/pdf-quench";
description = "A visual tool for cropping pdf files";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/polychromatic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ python3Packages.buildPythonApplication rec {
usbutils
];

dontWrapGapps = true;
dontWrapGApps = true;
dontWrapQtApps = true;

makeWrapperArgs = [
Expand Down
Loading

0 comments on commit 375df48

Please sign in to comment.