41 lines
935 B
Nix
41 lines
935 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "vuetorrent";
|
|
version = "2.27.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "VueTorrent";
|
|
repo = "VueTorrent";
|
|
tag = "v${version}";
|
|
hash = "sha256-0yzxlXyA8wEY6oixjhXFBZ+FL5vFbK6OiLSt5/bv0e4=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-7tcLXKpqF4LMuLCcjfVSZUipdrjQiiTS2R5XmLVxv2o=";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share
|
|
cp -r vuetorrent $out/share/vuetorrent
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Full-featured BitTorrent client written in Vue";
|
|
homepage = "https://github.com/VueTorrent/VueTorrent";
|
|
changelog = "https://github.com/VueTorrent/VueTorrent/releases/tag/${src.tag}";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ redxtech ];
|
|
};
|
|
}
|