2023-05-09 22:17:12 +02:00
|
|
|
{ lib
|
2023-03-16 21:41:49 +01:00
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-05-09 22:17:12 +02:00
|
|
|
, buildNpmPackage
|
|
|
|
, nix-update-script
|
2023-03-16 21:41:49 +01:00
|
|
|
}:
|
|
|
|
|
2023-05-09 22:17:12 +02:00
|
|
|
buildNpmPackage rec {
|
2023-03-16 21:41:49 +01:00
|
|
|
pname = "ariang";
|
2023-12-11 14:47:36 +01:00
|
|
|
version = "1.3.7";
|
2023-03-16 21:41:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mayswind";
|
|
|
|
repo = "AriaNg";
|
|
|
|
rev = version;
|
2023-12-11 14:47:36 +01:00
|
|
|
hash = "sha256-p9EwlmI/xO3dX5ZpbDVVxajQySGYcJj5G57F84zYAD0=";
|
2023-03-16 21:41:49 +01:00
|
|
|
};
|
|
|
|
|
2023-12-11 14:47:36 +01:00
|
|
|
npmDepsHash = "sha256-xX8hD303CWlpsYoCfwHWgOuEFSp1A+M1S53H+4pyAUQ=";
|
2023-05-09 22:17:12 +02:00
|
|
|
|
|
|
|
makeCacheWritable = true;
|
2023-03-16 21:41:49 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -r dist $out/share/ariang
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2023-05-09 22:17:12 +02:00
|
|
|
passthru.updateScript = nix-update-script {};
|
2023-03-16 21:41:49 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "a modern web frontend making aria2 easier to use";
|
|
|
|
homepage = "http://ariang.mayswind.net/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ stunkymonkey ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|