jackett: apply patches only to the package as used by the service -- not all of nixpkgs

This commit is contained in:
2024-07-22 11:10:30 +00:00
parent 1e0034c66f
commit 4e35c09a85
5 changed files with 10 additions and 15 deletions

View File

@@ -10,7 +10,7 @@
./gitea.nix
./goaccess.nix
./ipfs.nix
./jackett.nix
./jackett
./jellyfin.nix
./kiwix-serve.nix
./komga.nix

View File

@@ -6,6 +6,15 @@
{ user = "root"; group = "root"; path = "/var/lib/jackett"; method = "bind"; }
];
services.jackett.enable = true;
services.jackett.package = pkgs.jackett.overrideAttrs (upstream: {
# 2022-07-29: check phase segfaults on arm (with or without my patches)
doCheck = false;
patches = (upstream.patches or []) ++ [
# bind to an IP address which is usable behind a netns.
# jackett doesn't allow customization of the bind address: this will probably always be here.
./01-fix-bind-host.patch
];
});
systemd.services.jackett.after = [ "wireguard-wg-ovpns.service" ];
systemd.services.jackett.partOf = [ "wireguard-wg-ovpns.service" ];

View File

@@ -167,9 +167,6 @@ let
# ibus = callPackage ./patched/ibus { inherit (unpatched) ibus; };
# jackett doesn't allow customization of the bind address: this will probably always be here.
jackett = callPackage ./patched/jackett { inherit (unpatched) jackett; };
# modemmanager = callPackage ./patched/modemmanager { inherit (unpatched) modemmanager; };
playerctl = unpatched.playerctl.overrideAttrs (upstream: {

View File

@@ -1,11 +0,0 @@
{ jackett }:
(jackett.overrideAttrs (upstream: {
# 2022-07-29: check phase segfaults on arm (with or without my patches)
doCheck = false;
patches = (upstream.patches or []) ++ [
# bind to an IP address which is usable behind a netns
./01-fix-bind-host.patch
];
}))