mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 06:28:50 +03:00
sonarr: 2.0.0.5344 -> 3.0.5.1144 (#115944)
* sonarr: 2.0.0.5344 -> 3.0.5.1144 * sonarr: change license to gpl3Only * sonarr: add test passthru * sonarr: remove ellipses from arguments Co-authored-by: Sandro <sandro.jaeckel@gmail.com> * sonarr: create update script Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
91b91ebe40
commit
6144606a2c
@ -1,12 +1,12 @@
|
||||
{ lib, stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper, ... }:
|
||||
{ lib, stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper, nixosTests }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sonarr";
|
||||
version = "2.0.0.5344";
|
||||
version = "3.0.5.1144";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.sonarr.tv/v2/master/mono/NzbDrone.master.${version}.mono.tar.gz";
|
||||
sha256 = "0bsxf7m2dir7gi0cfn8vdasr11q224b9mp6cixak9ss5zafwn59a";
|
||||
url = "https://download.sonarr.tv/v3/main/${version}/Sonarr.main.${version}.linux.tar.gz";
|
||||
sha256 = "1ajqh3hvjfsbs6rb2f8dnndxsycmlzamp0cwjwkh1j2dinbzdbvp";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
@ -14,17 +14,21 @@ stdenv.mkDerivation rec {
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -r * $out/bin/
|
||||
|
||||
makeWrapper "${mono}/bin/mono" $out/bin/NzbDrone \
|
||||
--add-flags "$out/bin/NzbDrone.exe" \
|
||||
--add-flags "$out/bin/Sonarr.exe" \
|
||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [
|
||||
curl sqlite libmediainfo ]}
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = "./update.sh";
|
||||
tests.smoke-test = nixosTests.sonarr;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Smart PVR for newsgroup and bittorrent users";
|
||||
homepage = "https://sonarr.tv/";
|
||||
license = lib.licenses.gpl3;
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ fadenb purcell ];
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
|
7
pkgs/servers/sonarr/update.sh
Executable file
7
pkgs/servers/sonarr/update.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl jq common-updater-scripts
|
||||
|
||||
latestTag=$(curl https://api.github.com/repos/Sonarr/Sonarr/tags | jq -r '.[] | .name' | sort --version-sort | tail -1)
|
||||
version="$(expr $latestTag : 'v\(.*\)')"
|
||||
|
||||
update-source-version sonarr "$version"
|
Loading…
Reference in New Issue
Block a user