mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Merge pull request #75465 from worldofpeace/gnome-args
doc/gnome: update wrapper args example, remove proliferated uses
This commit is contained in:
commit
be13df6c76
@ -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 qt5’s mkDerivation
|
# Arguments to be passed to `makeWrapper`, only used by qt5’s mkDerivation
|
||||||
qtWrapperArgs = [
|
preFixup = ''
|
||||||
"\${gappsWrapperArgs[@]}"
|
qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||||
];
|
'';
|
||||||
}
|
}
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
@ -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}";
|
||||||
|
@ -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";
|
||||||
|
@ -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/;
|
||||||
|
@ -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[@]}")
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -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 = ''
|
||||||
|
@ -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";
|
||||||
|
@ -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";
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user