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