mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
8268fd19a3
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
37 lines
1006 B
Nix
37 lines
1006 B
Nix
{ stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "lidarr-${version}";
|
|
version = "0.5.0.583";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.develop.${version}.linux.tar.gz";
|
|
sha256 = "0vqnx8vd7mv4lsl7ffsjanl9pm107bk3ndvfka2ky74qisrqcyz7";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|