2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
2023-05-24 13:37:59 +00:00
|
|
|
, buildNpmPackage
|
|
|
|
, nix-update-script
|
2023-04-12 12:48:02 +00:00
|
|
|
}:
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildNpmPackage rec {
|
2023-04-12 12:48:02 +00:00
|
|
|
pname = "ariang";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.3.7";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mayswind";
|
|
|
|
repo = "AriaNg";
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-p9EwlmI/xO3dX5ZpbDVVxajQySGYcJj5G57F84zYAD0=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
npmDepsHash = "sha256-xX8hD303CWlpsYoCfwHWgOuEFSp1A+M1S53H+4pyAUQ=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
makeCacheWritable = true;
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -r dist $out/share/ariang
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru.updateScript = nix-update-script {};
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Modern web frontend making aria2 easier to use";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "http://ariang.mayswind.net/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ stunkymonkey ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|