Merge pull request #75465 from worldofpeace/gnome-args

doc/gnome: update wrapper args example, remove proliferated uses
This commit is contained in:
worldofpeace 2019-12-15 00:13:17 -05:00 committed by GitHub
commit be13df6c76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 74 additions and 60 deletions

View File

@ -199,9 +199,9 @@ python3.pkgs.buildPythonApplication {
dontWrapGApps = true; dontWrapGApps = true;
# Arguments to be passed to `makeWrapper`, only used by buildPython* # Arguments to be passed to `makeWrapper`, only used by buildPython*
makeWrapperArgs = [ preFixup = ''
"\${gappsWrapperArgs[@]}" makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
]; '';
} }
</programlisting> </programlisting>
And for a QT app like: And for a QT app like:
@ -219,9 +219,9 @@ mkDerivation {
dontWrapGApps = true; dontWrapGApps = true;
# Arguments to be passed to `makeWrapper`, only used by qt5s mkDerivation # Arguments to be passed to `makeWrapper`, only used by qt5s mkDerivation
qtWrapperArgs = [ preFixup = ''
"\${gappsWrapperArgs[@]}" qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
]; '';
} }
</programlisting> </programlisting>
</para> </para>

View File

@ -79,9 +79,9 @@ python3.pkgs.buildPythonApplication rec {
# argument # argument
dontWrapGApps = true; dontWrapGApps = true;
makeWrapperArgs = [ preFixup = ''
"\${gappsWrapperArgs[@]}" makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
]; '';
meta = with lib; { meta = with lib; {
changelog = "https://gitlab.gnome.org/World/lollypop/tags/${version}"; changelog = "https://gitlab.gnome.org/World/lollypop/tags/${version}";

View File

@ -67,14 +67,16 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
tenacity tenacity
]; ];
makeWrapperArgs = [ preFixup = ''
"--set GI_TYPELIB_PATH \"$GI_TYPELIB_PATH\"" makeWrapperArgs+=(
"--set PYTHONPATH \"$PYTHONPATH\"" --set GI_TYPELIB_PATH "$GI_TYPELIB_PATH"
"--prefix PATH : ${stdenv.lib.makeBinPath [ exiftool vmtouch ]}" --set PYTHONPATH "$PYTHONPATH"
"--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ libmediainfo ]}" --prefix PATH : "${stdenv.lib.makeBinPath [ exiftool vmtouch ]}"
"--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : \"$GST_PLUGIN_SYSTEM_PATH_1_0\"" --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ libmediainfo ]}"
"\${qtWrapperArgs[@]}" --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
]; "''${qtWrapperArgs[@]}"
)
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Photo and video importer for cameras, phones, and memory cards"; description = "Photo and video importer for cameras, phones, and memory cards";

View File

@ -52,17 +52,6 @@ python36Packages.buildPythonApplication rec {
python36Packages.six python36Packages.six
]; ];
makeWrapperArgs = [
# Firstly, add all necessary QT variables
"\${qtWrapperArgs[@]}"
# Then, add the installed scripts/ directory to the python path
"--prefix" "PYTHONPATH" ":" "$out/lib/${python36Packages.python.libPrefix}/site-packages"
# Finally, move to directory that contains data
"--run" "\"cd $out/share/${pname}\""
];
postInstall = '' postInstall = ''
# This script doesn't work and it doesn't add much anyway # This script doesn't work and it doesn't add much anyway
rm $out/bin/multibootusb-pkexec rm $out/bin/multibootusb-pkexec
@ -72,6 +61,19 @@ python36Packages.buildPythonApplication rec {
cp -r data "$out/share/${pname}/data" cp -r data "$out/share/${pname}/data"
''; '';
preFixup = ''
makeWrapperArgs+=(
# Firstly, add all necessary QT variables
"''${qtWrapperArgs[@]}"
# Then, add the installed scripts/ directory to the python path
--prefix "PYTHONPATH" ":" "$out/lib/${python36Packages.python.libPrefix}/site-packages"
# Finally, move to directory that contains data
--run "cd $out/share/${pname}"
)
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Multiboot USB creator for Linux live disks"; description = "Multiboot USB creator for Linux live disks";
homepage = http://multibootusb.org/; homepage = http://multibootusb.org/;

View File

@ -47,8 +47,9 @@
propagatedBuildInputs = [ Babel pyqt5 xlib pyserial appdirs wcwidth setuptools ]; propagatedBuildInputs = [ Babel pyqt5 xlib pyserial appdirs wcwidth setuptools ];
dontWrapQtApps = true; dontWrapQtApps = true;
makeWrapperArgs = [
"\${qtWrapperArgs[@]}" preFixup = ''
]; makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
}; };
} }

View File

@ -27,18 +27,6 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
pygments pygments
]; ];
dontWrapQtApps = true;
makeWrapperArgs = [ "\${qtWrapperArgs[@]}" ];
# See https://github.com/parkouss/webmacs/blob/1a04fb7bd3f33d39cb4d71621b48c2458712ed39/setup.py#L32
# Don't know why they're using CC for g++.
preConfigure = ''
export CC=$CXX
'';
doCheck = false; # test dependencies not packaged up yet
checkInputs = [ checkInputs = [
python3Packages.pytest python3Packages.pytest
#python3Packages.pytest-xvfb #python3Packages.pytest-xvfb
@ -53,6 +41,20 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
# python3Packages.flake8 # python3Packages.flake8
]; ];
# See https://github.com/parkouss/webmacs/blob/1a04fb7bd3f33d39cb4d71621b48c2458712ed39/setup.py#L32
# Don't know why they're using CC for g++.
preConfigure = ''
export CC=$CXX
'';
doCheck = false; # test dependencies not packaged up yet
dontWrapQtApps = true;
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = with lib; { meta = with lib; {
description = "Keyboard-based web browser with Emacs/conkeror heritage"; description = "Keyboard-based web browser with Emacs/conkeror heritage";
longDescription = '' longDescription = ''

View File

@ -44,11 +44,6 @@ mkDerivationWith pythonPackages.buildPythonApplication rec {
dontWrapQtApps = true; dontWrapQtApps = true;
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
"--prefix LD_LIBRARY_PATH: ${gnutls.out}/lib"
];
postInstall = '' postInstall = ''
mkdir -p "$out/share/applications" mkdir -p "$out/share/applications"
mkdir -p "$out/share/pixmaps" mkdir -p "$out/share/pixmaps"
@ -56,6 +51,13 @@ mkDerivationWith pythonPackages.buildPythonApplication rec {
cp "$out"/share/blink/icons/blink.* "$out/share/pixmaps" cp "$out"/share/blink/icons/blink.* "$out/share/pixmaps"
''; '';
preFixup = ''
makeWrapperArgs+=(
--prefix "LD_LIBRARY_PATH" ":" "${gnutls.out}/lib"
"''${qtWrapperArgs[@]}"
)
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://icanblink.com/; homepage = http://icanblink.com/;
description = "A state of the art, easy to use SIP client for Voice, Video and IM"; description = "A state of the art, easy to use SIP client for Voice, Video and IM";

View File

@ -50,9 +50,10 @@ buildPythonPackage rec {
''; '';
dontWrapQtApps = true; dontWrapQtApps = true;
makeWrapperArgs = [
"\${qtWrapperArgs[@]}" preFixup = ''
]; makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Scientific python development environment"; description = "Scientific python development environment";

View File

@ -163,10 +163,13 @@ buildPythonApplication rec {
''; '';
dontWrapQtApps = true; dontWrapQtApps = true;
makeWrapperArgs = [
''--prefix PATH ':' "${lame}/bin:${mplayer}/bin"'' preFixup = ''
"\${qtWrapperArgs[@]}" makeWrapperArgs+=(
]; "''${qtWrapperArgs[@]}"
--prefix PATH ':' "${lame}/bin:${mplayer}/bin"
)
'';
# now wrapPythonPrograms from postFixup will add both python and qt env variables # now wrapPythonPrograms from postFixup will add both python and qt env variables

View File

@ -33,17 +33,18 @@ python.pkgs.buildPythonApplication rec {
# No tests/ directrory in tarball # No tests/ directrory in tarball
doCheck = false; doCheck = false;
dontWrapQtApps = true;
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
];
postInstall = '' postInstall = ''
mkdir -p $out/share mkdir -p $out/share
mv $out/${python.sitePackages}/$out/share/locale $out/share mv $out/${python.sitePackages}/$out/share/locale $out/share
rm -r $out/${python.sitePackages}/nix rm -r $out/${python.sitePackages}/nix
''; '';
dontWrapQtApps = true;
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = { meta = {
homepage = https://mnemosyne-proj.org/; homepage = https://mnemosyne-proj.org/;
description = "Spaced-repetition software"; description = "Spaced-repetition software";