nixpkgs/pkgs/servers/ariang/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
842 B
Nix
Raw Normal View History

2023-05-09 20:17:12 +00:00
{ lib
2023-03-16 20:41:49 +00:00
, stdenv
, fetchFromGitHub
2023-05-09 20:17:12 +00:00
, buildNpmPackage
, nix-update-script
2023-03-16 20:41:49 +00:00
}:
2023-05-09 20:17:12 +00:00
buildNpmPackage rec {
2023-03-16 20:41:49 +00:00
pname = "ariang";
2023-12-11 13:47:36 +00:00
version = "1.3.7";
2023-03-16 20:41:49 +00:00
src = fetchFromGitHub {
owner = "mayswind";
repo = "AriaNg";
rev = version;
2023-12-11 13:47:36 +00:00
hash = "sha256-p9EwlmI/xO3dX5ZpbDVVxajQySGYcJj5G57F84zYAD0=";
2023-03-16 20:41:49 +00:00
};
2023-12-11 13:47:36 +00:00
npmDepsHash = "sha256-xX8hD303CWlpsYoCfwHWgOuEFSp1A+M1S53H+4pyAUQ=";
2023-05-09 20:17:12 +00:00
makeCacheWritable = true;
2023-03-16 20:41:49 +00:00
installPhase = ''
runHook preInstall
mkdir -p $out/share
cp -r dist $out/share/ariang
runHook postInstall
'';
2023-05-09 20:17:12 +00:00
passthru.updateScript = nix-update-script {};
2023-03-16 20:41:49 +00: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;
};
}