fuuko/torrent: Use nixpkgs unstable’s aria2
It has a new release of aria2 that includes the patch that was previously manually applied.
This commit is contained in:
parent
c0493bd3a5
commit
1aa325b1ec
|
@ -47,18 +47,6 @@ let
|
||||||
(k: v: "${k}=${toString' v}")
|
(k: v: "${k}=${toString' v}")
|
||||||
settings));
|
settings));
|
||||||
|
|
||||||
# Without this patch, the download and upload lengths are wrong after pausing
|
|
||||||
# and unpausing. I don’t patch this globally (in the overlay), since aria2 is
|
|
||||||
# in the user environment and would have to be rebuilt on slow machines.
|
|
||||||
aria2 = pkgs.aria2.overrideAttrs (o: o // {
|
|
||||||
patches = [
|
|
||||||
(pkgs.fetchpatch {
|
|
||||||
url = "https://github.com/aria2/aria2/commit/6ebdddb9f159e87923736f25900897b3602305f9.diff";
|
|
||||||
sha256 = "1j5mnafiv92xnzghh03hfdvpn9647vfdcipamnvi8hnzk3ak4mj7";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
});
|
|
||||||
|
|
||||||
mkProxyService = socket: port: {
|
mkProxyService = socket: port: {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "wireguard-wg-aria.service" ];
|
after = [ "wireguard-wg-aria.service" ];
|
||||||
|
@ -128,7 +116,7 @@ in
|
||||||
NetworkNamespacePath = "/run/netns/aria2";
|
NetworkNamespacePath = "/run/netns/aria2";
|
||||||
|
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
ExecStart = "${aria2}/bin/aria2c --conf-path=${configFile}";
|
ExecStart = "${pkgs.unstable.aria2}/bin/aria2c --conf-path=${configFile}";
|
||||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||||
User = "aria2";
|
User = "aria2";
|
||||||
Group = "aria2";
|
Group = "aria2";
|
||||||
|
|
Loading…
Reference in a new issue