2018-09-09 12:10:04 +02:00
|
|
|
{ stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lidarr-${version}";
|
2018-10-04 13:43:16 +02:00
|
|
|
version = "0.4.0.524";
|
2018-09-09 12:10:04 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.develop.${version}.linux.tar.gz";
|
2018-10-04 13:43:16 +02:00
|
|
|
sha256 = "121898v8n9sr9wwys65c28flpmk941wk6df11bb47pfjcalrr3bj";
|
2018-09-09 12:10:04 +02: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;
|
|
|
|
};
|
|
|
|
}
|