2018-09-09 10:10:04 +00:00
|
|
|
{ stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "lidarr";
|
2019-09-14 16:31:37 +00:00
|
|
|
version = "0.7.1.1381";
|
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";
|
|
|
|
sha256 = "1vk1rlsb48ckdc4421a2qs0v5gy7kc4fad24dm3k14znh7llwypr";
|
2018-09-09 10:10:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
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" \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [
|
|
|
|
curl sqlite libmediainfo ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|