mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-26 10:30:32 +00:00
mediaelch: fix loading of libmediainfo
(cherry picked from commit 64d9b62ab9)
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
{ lib
|
||||
, mkDerivation
|
||||
, fetchFromGitHub
|
||||
|
||||
, qmake
|
||||
, qttools
|
||||
|
||||
, curl
|
||||
, ffmpeg
|
||||
, libmediainfo
|
||||
@@ -10,7 +13,6 @@
|
||||
, qtdeclarative
|
||||
, qtmultimedia
|
||||
, qtsvg
|
||||
, qttools
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
@@ -27,12 +29,17 @@ mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ qmake qttools ];
|
||||
|
||||
buildInputs = [ curl libmediainfo libzen ffmpeg qtbase qtdeclarative qtmultimedia qtsvg ];
|
||||
buildInputs = [ curl ffmpeg libmediainfo libzen qtbase qtdeclarative qtmultimedia qtsvg ];
|
||||
|
||||
prePatch = ''
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user