31 lines
947 B
Nix
31 lines
947 B
Nix
{ stdenv, fetchurl, mono58, sqlite, curl, libmediainfo, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "lidarr-${version}";
|
|
version = "0.3.0.430";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.develop.${version}.linux.tar.gz";
|
|
sha256 = "1syj5j2qn33k1q76lbifnvbp3q6qix7lzpxpnhvikiw91h8116zd";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/{bin,share/${name}}
|
|
cp -r * $out/share/${name}/.
|
|
makeWrapper "${mono58}/bin/mono" $out/bin/lidarr \
|
|
--add-flags "$out/share/${name}/Lidarr.exe" \
|
|
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [
|
|
curl sqlite libmediainfo ]}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A Usenet/BitTorrent music downloader.";
|
|
homepage = http://lidarr.audio/;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|