From 8c21913418956eff928e7fe7f920261ddb764747 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Tue, 23 May 2023 02:04:06 +0200 Subject: [PATCH] VueTorrent: init --- .github/workflows/build.yml | 1 + README.md | 1 + flake.nix | 1 + packages/vuetorrent.nix | 31 +++++++++++++++++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 packages/vuetorrent.nix diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6b135f..3fe83e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,7 @@ jobs: - run: nix build '.#neovim-nightly' - run: nix build '.#q' - run: nix build '.#rimgo' + - run: nix build '.#vuetorrent' - run: nix build '.#bdfr-browser' - run: nix build '.#website-docs-nifoc-pw' diff --git a/README.md b/README.md index 601ee88..4fac0ee 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,4 @@ * [phantomjs](https://github.com/ariya/phantomjs) * [q](https://github.com/natesales/q) * [rimgo](https://codeberg.org/video-prize-ranch/rimgo) +* [VueTorrent](https://github.com/WDaan/VueTorrent) diff --git a/flake.nix b/flake.nix index e3b173e..b03583a 100644 --- a/flake.nix +++ b/flake.nix @@ -50,6 +50,7 @@ nitter-unstable = import ./packages/nitter-unstable.nix { inherit pkgs lib; }; q = import ./packages/q.nix { inherit pkgs lib; }; rimgo = import ./packages/rimgo.nix { inherit pkgs lib; }; + vuetorrent = import ./packages/vuetorrent.nix { inherit pkgs lib; }; bdfr-browser = inputs'.bdfr-browser-flake.packages.default; website-docs-nifoc-pw = import ./packages/website-docs-nifoc-pw.nix { inherit pkgs; }; diff --git a/packages/vuetorrent.nix b/packages/vuetorrent.nix new file mode 100644 index 0000000..cefe240 --- /dev/null +++ b/packages/vuetorrent.nix @@ -0,0 +1,31 @@ +{ pkgs, lib }: + +pkgs.stdenv.mkDerivation rec { + pname = "vuetorrent"; + version = "1.5.8"; + + src = pkgs.fetchurl { + url = "https://github.com/WDaan/VueTorrent/releases/download/v${version}/vuetorrent.zip"; + sha256 = "sha256-FM6kEN8DqIXYPUpjzV8DmQ63QV7wTHTKuyhrDhM7lyo="; + }; + + buildInputs = with pkgs; [ unzip ]; + + unpackPhase = '' + unzip $src + ''; + + dontStrip = true; + + installPhase = '' + mkdir -p $out/share/ + cp -r vuetorrent/public/ $out/share/ + ''; + + meta = with lib; { + description = "The sleekest looking WEBUI for qBittorrent made with Vuejs! "; + homepage = "https://github.com/WDaan/VueTorrent"; + license = [ licenses.gpl3Only ]; + platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ]; + }; +}