nixpkgs-suyu/pkgs/servers/lidarr/default.nix
R. RyanTM f633ae3857 lidarr: 0.6.0.815 -> 0.6.1.830
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/lidarr/versions
2019-05-01 11:20:51 +02:00

36 lines
1,006 B
Nix

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