diff --git a/pkgs/by-name/vu/vuetorrent/package.nix b/pkgs/by-name/vu/vuetorrent/package.nix new file mode 100644 index 00000000000000..0e501d6c0e16e4 --- /dev/null +++ b/pkgs/by-name/vu/vuetorrent/package.nix @@ -0,0 +1,32 @@ +{ + lib, + stdenv, + fetchzip, + nix-update-script, +}: + +stdenv.mkDerivation rec { + pname = "vuetorrent"; + version = "2.18.0"; + + src = fetchzip { + url = "https://github.com/VueTorrent/VueTorrent/releases/download/v${version}/vuetorrent.zip"; + hash = "sha256-Z+N1RgcF67R6hWEfmfBls1+YLWkhEJQuOVqXXJCyptE="; + }; + + installPhase = '' + mkdir -p $out/var/www/vuetorrent + cp -r * $out/var/www/vuetorrent + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "A full-featured BitTorrent client written in Vue"; + homepage = "https://github.com/VueTorrent/VueTorrent"; + changelog = "https://github.com/VueTorrent/VueTorrent/releases/tag/v${version}"; + license = lib.licenses.gpl3Only; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ redxtech ]; + }; +}