various: fix makeWrapperArgs

This commit is contained in:
Michael Daniels
2026-10-04 14:22:23 -04:00
committed by Martin Weinelt
parent 894dcf755e
commit 9574dc64be
19 changed files with 140 additions and 77 deletions

View File

@@ -54,7 +54,11 @@ python3Packages.buildPythonApplication (finalAttrs: {
writableTmpDirAsHomeHook
];
makeWrapperArgs = [ "--set R_HOME ${R}/lib/R" ];
makeWrapperArgs = [
"--set"
"R_HOME"
"${R}/lib/R"
];
preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${R}/lib/R/lib

View File

@@ -33,7 +33,10 @@ python3Packages.buildPythonApplication (finalAttrs: {
packagesToBinPath = [ ffmpeg-headless ];
in
[
''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"''
"--prefix"
"PATH"
":"
(lib.makeBinPath packagesToBinPath)
];
# No tests in repository

View File

@@ -48,7 +48,10 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
];
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}"
"--prefix"
"PATH"
":"
(lib.makeBinPath [ ffmpeg ])
];
meta = {

View File

@@ -54,8 +54,12 @@ python3Packages.buildPythonApplication rec {
'';
makeWrapperArgs = [
"--chdir ${placeholder "out"}/share/social-engineer-toolkit"
"--prefix PYTHONPATH : \"${placeholder "out"}/share/social-engineer-toolkit\""
"--chdir"
"${placeholder "out"}/share/social-engineer-toolkit"
"--prefix"
"PYTHONPATH"
":"
"${placeholder "out"}/share/social-engineer-toolkit"
];
# Project has no tests

View File

@@ -117,10 +117,12 @@ python3Packages.buildPythonApplication (finalAttrs: {
dontWrapQtApps = true;
dontWrapGApps = true;
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
"\${gappsWrapperArgs[@]}"
];
preFixup = ''
makeWrapperArgs+=(
"''${qtWrapperArgs[@]}"
"''${gappsWrapperArgs[@]}"
)
'';
meta = {
changelog = "https://github.com/streamdeck-linux-gui/streamdeck-linux-gui/releases/tag/v${finalAttrs.version}";

View File

@@ -139,20 +139,29 @@ python3Packages.buildPythonApplication {
++ lib.optional stdenv.hostPlatform.isLinux pulsectl;
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}"
"--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath (
[
game-music-emu
libayatana-appindicator
libopenmpt
pulseaudio
]
++ lib.optional stdenv.hostPlatform.isLinux libxcursor
)
}"
"--prefix PYTHONPATH : $out/share/tauon"
"--set GI_TYPELIB_PATH $GI_TYPELIB_PATH"
"--prefix"
"PATH"
":"
(lib.makeBinPath [ ffmpeg ])
"--prefix"
"LD_LIBRARY_PATH"
":"
(lib.makeLibraryPath (
[
game-music-emu
libayatana-appindicator
libopenmpt
pulseaudio
]
++ lib.optional stdenv.hostPlatform.isLinux libxcursor
))
"--prefix"
"PYTHONPATH"
":"
"$out/share/tauon"
"--set"
"GI_TYPELIB_PATH"
"$GI_TYPELIB_PATH"
];
postInstall = ''

View File

@@ -31,14 +31,17 @@ python3Packages.buildPythonApplication (finalAttrs: {
];
makeWrapperArgs = [
"--prefix PATH : ${
lib.makeBinPath [
bwa
fermi2
ropebwt2
]
}"
"--set PYTHONPATH $PYTHONPATH"
"--prefix"
"PATH"
":"
(lib.makeBinPath [
bwa
fermi2
ropebwt2
])
"--set"
"PYTHONPATH"
"$PYTHONPATH"
];
meta = {

View File

@@ -27,7 +27,12 @@ python3Packages.buildPythonApplication {
"install-man-pd"
];
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ tlp ]}" ];
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [ tlp ])
];
postInstall = ''
substituteInPlace $out/share/dbus-1/system-services/*.service \

View File

@@ -23,12 +23,13 @@ python3Packages.buildPythonApplication (finalAttrs: {
];
makeWrapperArgs = [
"--prefix PATH : ${
lib.makeBinPath [
mame-tools
p7zip
]
}"
"--prefix"
"PATH"
":"
(lib.makeBinPath [
mame-tools
p7zip
])
];
postInstall = ''

View File

@@ -37,9 +37,12 @@ python3Packages.buildPythonApplication {
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
makeWrapperArgs = [
"--prefix PATH : ${
lib.makeBinPath (lib.optional x11Support xclip ++ lib.optional stdenv.hostPlatform.isDarwin pbcopy)
}"
"--prefix"
"PATH"
":"
(lib.makeBinPath (
lib.optional x11Support xclip ++ lib.optional stdenv.hostPlatform.isDarwin pbcopy
))
];
meta = {

View File

@@ -24,7 +24,12 @@ python3Packages.buildPythonApplication (finalAttrs: {
requests
];
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]}" ];
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [ ffmpeg-headless ])
];
pythonImportsCheck = [ "twspace_dl" ];

View File

@@ -105,7 +105,10 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
pythonImportsCheck = [ "unblob" ];
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath runtimeDeps}"
"--prefix"
"PATH"
":"
(lib.makeBinPath runtimeDeps)
];
nativeCheckInputs =

View File

@@ -25,7 +25,10 @@ python3Packages.buildPythonPackage rec {
];
makeWrapperArgs = [
"--suffix PATH : ${lib.makeBinPath [ ffmpeg ]}"
"--suffix"
"PATH"
":"
(lib.makeBinPath [ ffmpeg ])
];
doCheck = false;

View File

@@ -37,7 +37,12 @@ python3Packages.buildPythonApplication (finalAttrs: {
pythonImportsCheck = [ "vcsi" ];
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}" ];
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [ ffmpeg ])
];
nativeCheckInputs = [
versionCheckHook

View File

@@ -41,15 +41,17 @@ python3Packages.buildPythonApplication {
];
dontWrapQtApps = true;
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
"--prefix PATH : ${
lib.makeBinPath [
ffmpeg
mediainfo
]
}"
];
preFixup = ''
makeWrapperArgs+=(
"''${qtWrapperArgs[@]}"
"--prefix" "PATH" ":" "${
lib.makeBinPath [
ffmpeg
mediainfo
]
}"
)
'';
meta = {
description = "Modern yet simple multi-platform video cutter and joiner";

View File

@@ -100,18 +100,20 @@ python3Packages.buildPythonApplication {
dontWrapGApps = true;
makeWrapperArgs = [
"\${gappsWrapperArgs[@]}"
"--prefix PATH : ${
lib.makeBinPath [
android-tools
bindfs
e2fsprogs
fakeroot
unzip
]
}"
];
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
"--prefix" "PATH" ":" "${
lib.makeBinPath [
android-tools
bindfs
e2fsprogs
fakeroot
unzip
]
}"
)
'';
postInstallCheck = ''
mesonCheckPhase

View File

@@ -82,14 +82,6 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
]
++ bins;
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath bins)
"\${gappsWrapperArgs[@]}"
];
dontWrapGApps = true;
outputs = [
@@ -112,6 +104,13 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
installManPage man/*.1
'';
preFixup = ''
makeWrapperArgs+=(
"--prefix" "PATH" ":" "${lib.makeBinPath bins}"
"''${gappsWrapperArgs[@]}"
)
'';
passthru.tests.version = testers.testVersion {
package = whipper;
command = "HOME=$TMPDIR whipper --version";

View File

@@ -39,8 +39,12 @@ python3Packages.buildPythonApplication (finalAttrs: {
];
makeWrapperArgs = [
"--set YTDL_SUB_FFMPEG_PATH ${lib.getExe' ffmpeg_7 "ffmpeg"}"
"--set YTDL_SUB_FFPROBE_PATH ${lib.getExe' ffmpeg_7 "ffprobe"}"
"--set"
"YTDL_SUB_FFMPEG_PATH"
(lib.getExe' ffmpeg_7 "ffmpeg")
"--set"
"YTDL_SUB_FFPROBE_PATH"
(lib.getExe' ffmpeg_7 "ffprobe")
];
nativeCheckInputs = [

View File

@@ -33,7 +33,10 @@ python3.pkgs.buildPythonApplication {
];
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [ ffmpeg-full ]}"
"--prefix"
"PATH"
":"
(lib.makeBinPath [ ffmpeg-full ])
];
postInstall = ''