From 79bb54b83243ecb8241b24001a59fa5b4bcf3fb8 Mon Sep 17 00:00:00 2001 From: Gabe Dunn Date: Tue, 19 Nov 2024 03:54:39 -0800 Subject: [PATCH] vuetorrent: init at 2.18.0 --- pkgs/by-name/vu/vuetorrent/package.nix | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/vu/vuetorrent/package.nix diff --git a/pkgs/by-name/vu/vuetorrent/package.nix b/pkgs/by-name/vu/vuetorrent/package.nix new file mode 100644 index 00000000000000..145aeaedd074ac --- /dev/null +++ b/pkgs/by-name/vu/vuetorrent/package.nix @@ -0,0 +1,40 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, + nix-update-script, +}: + +buildNpmPackage rec { + pname = "vuetorrent"; + version = "2.18.0"; + + src = fetchFromGitHub { + owner = "VueTorrent"; + repo = "VueTorrent"; + rev = "refs/tags/v${version}"; + hash = "sha256-n5CtVNowGUsIHdxpnXmtXLpjwRfIoRoOr7Gh7PUE0ck="; + }; + + npmDepsHash = "sha256-PfnZ61m8VulRm18R3aqnIPrCXAy0DOOCUPIgr2eFrbk="; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share + cp -r vuetorrent $out/share/vuetorrent + + runHook postInstall + ''; + + 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 ]; + }; +}