Merge pull request #180565 from WeebSorceress/anime-downloader-fix-qt

anime-downloader: fix bug with qt build
This commit is contained in:
Guillaume Girol 2022-07-15 15:45:29 +00:00 committed by GitHub
commit 7a145659b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, python3, aria2, mpv, nodejs, fetchFromGitHub }:
{ lib, python3, aria2, mpv, nodejs, qt5, fetchFromGitHub }:
python3.pkgs.buildPythonApplication rec {
pname = "anime-downloader";
@ -11,6 +11,8 @@ python3.pkgs.buildPythonApplication rec {
sha256 = "sha256-Uk2mtsSrb8fCD9JCFzvLBzMEB7ViVDrKPSOKy9ALJ6o=";
};
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
propagatedBuildInputs = [
aria2
mpv
@ -31,6 +33,10 @@ python3.pkgs.buildPythonApplication rec {
tabulate
]);
preFixup = ''
wrapQtApp "$out/bin/anime" --prefix PATH : ${lib.makeBinPath propagatedBuildInputs}
'';
doCheck = false;
# FIXME: checks must be disabled because they are lacking the qt env.
# They fail like this, even if built and wrapped with all Qt and runtime dependencies.