mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
60516726c1
Changelogs: - https://github.com/lidarr/Lidarr/releases/tag/v0.7.0.1347 - https://github.com/lidarr/Lidarr/releases/tag/v0.7.1.1381
37 lines
967 B
Nix
37 lines
967 B
Nix
{ stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lidarr";
|
|
version = "0.7.1.1381";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.master.${version}.linux.tar.gz";
|
|
sha256 = "1vk1rlsb48ckdc4421a2qs0v5gy7kc4fad24dm3k14znh7llwypr";
|
|
};
|
|
|
|
buildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -r * $out/bin/
|
|
|
|
# Mark main executable as executable
|
|
chmod +x $out/bin/Lidarr.exe
|
|
|
|
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;
|
|
};
|
|
}
|