From d9975aa84212d45faabb9808e89029e8297c13ee Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sun, 20 Oct 2019 16:47:40 +0200 Subject: [PATCH] lidarr: Add missing dependency chromaprint Without adding this dependency in the system status page I get the warning saying the following: > fpcalc could not be found. Audio fingerprinting disabled. With this dep we instead get the following: > You have an old version of fpcalc. Please upgrade to 1.4.3. Which I would find an improvement from the current state. --- pkgs/servers/lidarr/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/lidarr/default.nix b/pkgs/servers/lidarr/default.nix index e70fc685161d..915e4233ebe0 100644 --- a/pkgs/servers/lidarr/default.nix +++ b/pkgs/servers/lidarr/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper }: +{ stdenv, fetchurl, mono, libmediainfo, sqlite, curl, chromaprint, makeWrapper }: stdenv.mkDerivation rec { pname = "lidarr"; @@ -9,9 +9,7 @@ stdenv.mkDerivation rec { sha256 = "1vk1rlsb48ckdc4421a2qs0v5gy7kc4fad24dm3k14znh7llwypr"; }; - buildInputs = [ - makeWrapper - ]; + nativeBuildInputs = [ makeWrapper ]; installPhase = '' mkdir -p $out/bin @@ -22,6 +20,7 @@ stdenv.mkDerivation rec { makeWrapper "${mono}/bin/mono" $out/bin/Lidarr \ --add-flags "$out/bin/Lidarr.exe" \ + --prefix PATH : ${stdenv.lib.makeBinPath [ chromaprint ]} \ --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ curl sqlite libmediainfo ]} '';