2018-09-09 11:10:04 +01:00
|
|
|
{ stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lidarr";
|
2019-06-02 05:59:05 +01:00
|
|
|
version = "0.6.2.883";
|
2018-09-09 11:10:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.develop.${version}.linux.tar.gz";
|
2019-06-02 05:59:05 +01:00
|
|
|
sha256 = "0096j2vph739h288vnz481nrwaq540faplir394xqfz7ik0krg4v";
|
2018-09-09 11:10:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -r * $out/bin/
|
|
|
|
|
|
|
|
# Mark all executable files as non-executable
|
|
|
|
find $out/bin -type f -executable | xargs chmod -x
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = https://lidarr.audio/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.etu ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|