anime-downloader: fix bug with qt build

This commit is contained in:
WeebSorceress 2022-07-09 14:51:57 -03:00
parent a16b7de65f
commit 1ba2a7f398
No known key found for this signature in database
GPG Key ID: 8E1DE45BD51CC084

View File

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