persepolis: fix qt wrapping

This commit is contained in:
Jonathan Ringer 2020-07-01 10:58:36 -07:00 committed by Jon
parent f2df7ccaab
commit 35f530f9e8
2 changed files with 13 additions and 3 deletions

View File

@ -8,6 +8,7 @@
, setproctitle
, setuptools
, sound-theme-freedesktop
, wrapQtAppsHook
, youtube-dl
}:
@ -37,10 +38,17 @@ buildPythonApplication rec {
postInstall = ''
mkdir -p $out/share/applications
cp $src/xdg/com.github.persepolisdm.persepolis.desktop $out/share/applications
wrapProgram $out/bin/persepolis --prefix PATH : "${lib.makeBinPath [aria libnotify ]}"
'';
buildInputs = [ makeWrapper ];
# prevent double wrapping
dontWrapQtApps = true;
nativeBuildInputs = [ wrapQtAppsHook ];
# feed args to wrapPythonApp
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [aria libnotify ]}"
''''${qtWrapperArgs[@]}''
];
propagatedBuildInputs = [
pulseaudio

View File

@ -2150,7 +2150,9 @@ in
pbzx = callPackage ../tools/compression/pbzx { };
persepolis = python3Packages.callPackage ../tools/networking/persepolis { };
persepolis = python3Packages.callPackage ../tools/networking/persepolis {
wrapQtAppsHook = qt5.wrapQtAppsHook;
};
pev = callPackage ../development/tools/analysis/pev { };