31 lines
765 B
Nix
31 lines
765 B
Nix
{ pkgs, lib }:
|
|
|
|
pkgs.stdenv.mkDerivation rec {
|
|
pname = "vuetorrent";
|
|
version = "2.8.1";
|
|
|
|
src = pkgs.fetchurl {
|
|
url = "https://github.com/WDaan/VueTorrent/releases/download/v${version}/vuetorrent.zip";
|
|
sha256 = "sha256-rSXq0Py+JV466k/9Fej9opmNLGl7H5dfQn3lXkJMriA=";
|
|
};
|
|
|
|
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" ];
|
|
};
|
|
}
|