feat(qbit): add vuetorrent update script

This commit is contained in:
matt1432 2024-03-28 13:51:07 -04:00
parent 7540add6ee
commit 2f497101fa
3 changed files with 43 additions and 12 deletions
devices/nos/modules/qbittorrent

View file

@ -7,19 +7,23 @@
cfg = config.services.qbittorrent;
pkg = pkgs.qbittorrent-nox;
vue = pkgs.stdenv.mkDerivation {
name = "vuetorrent";
nativeBuildInputs = [pkgs.unzip];
buildInputs = [pkgs.unzip];
src = pkgs.fetchurl {
url = "https://github.com/VueTorrent/VueTorrent/releases/download/v2.7.1/vuetorrent.zip";
hash = "sha256-/6biiWVgYQF7SpiY3JmcW4NDAvePLwPyD+j12/BqPIE=";
vue = let
gen = import ./vuetorrent.nix;
in
pkgs.stdenv.mkDerivation {
name = "vuetorrent";
inherit (gen) version;
nativeBuildInputs = [pkgs.unzip];
src = pkgs.fetchurl {
inherit (gen) url hash;
};
postInstall = ''
mkdir $out
cp -a ./* $out
'';
};
postInstall = ''
mkdir $out
cp -a ./* $out
'';
};
inherit
(lib)

View file

@ -0,0 +1,6 @@
# This file was autogenerated. DO NOT EDIT!
{
version = "2.7.2";
url = "https://github.com/VueTorrent/VueTorrent/releases/download/v2.7.2/vuetorrent.zip";
hash = "sha256-G7LkoQmTR9ilygPPrip+f/LnpEXaeWcb+xcBWIz98A8=";
}