2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, mono, libmediainfo, sqlite, curl, chromaprint, makeWrapper }:
|
2018-09-09 12:10:04 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "lidarr";
|
2020-11-03 07:39:32 +01:00
|
|
|
version = "0.7.2.1878";
|
2018-09-09 12:10:04 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-09-14 18:31:37 +02:00
|
|
|
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.master.${version}.linux.tar.gz";
|
2020-11-03 07:39:32 +01:00
|
|
|
sha256 = "0kv0x3vvv4rp3i5k5985zp95mm8ca7gpm7kr82l11v3hm3n6yvqn";
|
2018-09-09 12:10:04 +02:00
|
|
|
};
|
|
|
|
|
2019-10-20 16:47:40 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-09-09 12:10:04 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -r * $out/bin/
|
|
|
|
|
2019-09-14 18:31:37 +02:00
|
|
|
# Mark main executable as executable
|
|
|
|
chmod +x $out/bin/Lidarr.exe
|
2018-09-09 12:10:04 +02:00
|
|
|
|
|
|
|
makeWrapper "${mono}/bin/mono" $out/bin/Lidarr \
|
|
|
|
--add-flags "$out/bin/Lidarr.exe" \
|
2019-10-20 16:47:40 +02:00
|
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [ chromaprint ]} \
|
2018-09-09 12:10:04 +02:00
|
|
|
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [
|
|
|
|
curl sqlite libmediainfo ]}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-09-09 12:10:04 +02:00
|
|
|
description = "A Usenet/BitTorrent music downloader";
|
2019-09-14 18:31:37 +02:00
|
|
|
homepage = "https://lidarr.audio/";
|
2018-09-09 12:10:04 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.etu ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|