nixpkgs/pkgs/by-name/ar/ariang/package.nix
2024-12-01 09:31:20 +00:00

41 lines
831 B
Nix

{ lib
, fetchFromGitHub
, buildNpmPackage
, nix-update-script
}:
buildNpmPackage rec {
pname = "ariang";
version = "1.3.8";
src = fetchFromGitHub {
owner = "mayswind";
repo = "AriaNg";
rev = version;
hash = "sha256-B7gyBVryRn1SwUIqzxc1MYDS8l/mxMfJtE1/ZrBjC1E=";
};
npmDepsHash = "sha256-DmACToIdXfAqiXe13vevWrpWDY1YgRWVaTfdlk5uhPg=";
makeCacheWritable = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share
cp -r dist $out/share/ariang
runHook postInstall
'';
passthru.updateScript = nix-update-script {};
meta = with lib; {
description = "Modern web frontend making aria2 easier to use";
homepage = "http://ariang.mayswind.net/";
license = licenses.mit;
maintainers = with maintainers; [ stunkymonkey ];
platforms = platforms.unix;
};
}