diff options
author | Felix Buehler <account@buehler.rocks> | 2022-02-15 20:27:33 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2022-02-17 14:04:10 +0100 |
commit | 64d9b62ab94116b675d10b2e8e1206d514253796 (patch) | |
tree | 1872f3afe01370d22354f218ea0885267fd86b5e /pkgs/applications/misc | |
parent | 32bdee9489a516870a9fda12ccaa5c702515df4c (diff) |
mediaelch: fix loading of libmediainfo
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/mediaelch/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/applications/misc/mediaelch/default.nix b/pkgs/applications/misc/mediaelch/default.nix index aae492c63cda1..7cfe873a44e6c 100644 --- a/pkgs/applications/misc/mediaelch/default.nix +++ b/pkgs/applications/misc/mediaelch/default.nix @@ -1,7 +1,10 @@ { lib , mkDerivation , fetchFromGitHub + , qmake +, qttools + , curl , ffmpeg , libmediainfo @@ -10,7 +13,6 @@ , qtdeclarative , qtmultimedia , qtsvg -, qttools , quazip }: @@ -28,7 +30,7 @@ mkDerivation rec { nativeBuildInputs = [ qmake qttools ]; - buildInputs = [ curl libmediainfo libzen ffmpeg qtbase qtdeclarative qtmultimedia qtsvg ]; + buildInputs = [ curl ffmpeg libmediainfo libzen qtbase qtdeclarative qtmultimedia qtsvg ]; qmakeFlags = [ "USE_EXTERN_QUAZIP=${quazip}/include/quazip5" @@ -38,6 +40,11 @@ mkDerivation rec { substituteInPlace MediaElch.pro --replace "/usr" "$out" ''; + qtWrapperArgs = [ + # libmediainfo.so.0 is loaded dynamically + "--prefix LD_LIBRARY_PATH : ${libmediainfo}/lib" + ]; + meta = with lib; { homepage = "https://mediaelch.de/mediaelch/"; description = "Media Manager for Kodi"; |