mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
lidarr: init at 0.3.1.471
Fork of sonarr (as radarr) but for music instead of series and movies.
This commit is contained in:
parent
18db34f09b
commit
aba95986d2
@ -330,6 +330,7 @@
|
||||
# render = 303; # unused
|
||||
zeronet = 304;
|
||||
lirc = 305;
|
||||
lidarr = 306;
|
||||
|
||||
# When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
|
||||
|
||||
@ -620,6 +621,7 @@
|
||||
render = 303; # default udev rules from systemd requires these
|
||||
zeronet = 304;
|
||||
lirc = 305;
|
||||
lidarr = 306;
|
||||
|
||||
# When adding a gid, make sure it doesn't match an existing
|
||||
# uid. Users and groups with the same name should have equal
|
||||
|
@ -365,6 +365,7 @@
|
||||
./services/misc/jackett.nix
|
||||
./services/misc/logkeys.nix
|
||||
./services/misc/leaps.nix
|
||||
./services/misc/lidarr.nix
|
||||
./services/misc/mantisbt.nix
|
||||
./services/misc/mathics.nix
|
||||
./services/misc/matrix-synapse.nix
|
||||
|
46
nixos/modules/services/misc/lidarr.nix
Normal file
46
nixos/modules/services/misc/lidarr.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.lidarr;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
services.lidarr = {
|
||||
enable = mkEnableOption "Lidarr";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services.lidarr = {
|
||||
description = "Lidarr";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
preStart = ''
|
||||
[ ! -d /var/lib/lidarr ] && mkdir -p /var/lib/lidarr
|
||||
chown -R lidarr:lidarr /var/lib/lidarr
|
||||
'';
|
||||
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "lidarr";
|
||||
Group = "lidarr";
|
||||
PermissionsStartOnly = "true";
|
||||
ExecStart = "${pkgs.lidarr}/bin/Lidarr";
|
||||
Restart = "on-failure";
|
||||
|
||||
StateDirectory = "/var/lib/lidarr/";
|
||||
StateDirectoryMode = "0770";
|
||||
};
|
||||
};
|
||||
|
||||
users.users.lidarr = {
|
||||
uid = config.ids.uids.lidarr;
|
||||
home = "/var/lib/lidarr";
|
||||
group = "lidarr";
|
||||
};
|
||||
|
||||
users.groups.lidarr.gid = config.ids.gids.lidarr;
|
||||
};
|
||||
}
|
36
pkgs/servers/lidarr/default.nix
Normal file
36
pkgs/servers/lidarr/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchurl, mono, libmediainfo, sqlite, curl, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lidarr-${version}";
|
||||
version = "0.3.1.471";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/lidarr/Lidarr/releases/download/v${version}/Lidarr.develop.${version}.linux.tar.gz";
|
||||
sha256 = "1x8q5yivkz8rwpkz0gdi73iaszb253bm1c3rdzar7xgrqr3g11nm";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
@ -3858,6 +3858,8 @@ with pkgs;
|
||||
|
||||
libwebsockets = callPackage ../development/libraries/libwebsockets { };
|
||||
|
||||
lidarr = callPackage ../servers/lidarr { };
|
||||
|
||||
limesuite = callPackage ../applications/misc/limesuite { };
|
||||
|
||||
limesurvey = callPackage ../servers/limesurvey { };
|
||||
|
Loading…
Reference in New Issue
Block a user