nixpkgs/pkgs/servers/lidarr/default.nix
Elis Hirwing aba95986d2
lidarr: init at 0.3.1.471
Fork of sonarr (as radarr) but for music instead of series and movies.
2018-09-29 21:40:29 +02:00

37 lines
1006 B
Nix

{ stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper }:
stdenv.mkDerivation rec {
name = "lidarr-${version}";
version = "0.3.1.471";
src = fetchurl {
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.develop.${version}.linux.tar.gz";
sha256 = "1x8q5yivkz8rwpkz0gdi73iaszb253bm1c3rdzar7xgrqr3g11nm";
};
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;
};
}