nixpkgs/pkgs/servers/ariang/default.nix

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-05-20 06:16:53 +00:00
version = "1.3.6";
2023-03-16 20:41:49 +00:00
src = fetchFromGitHub {
owner = "mayswind";
repo = "AriaNg";
rev = version;
2023-05-20 06:16:53 +00:00
hash = "sha256-+wwtBEZgU83FNQ5f9oQh5G4RQdCODzoqcV1XfwWKUKg=";
2023-03-16 20:41:49 +00:00
};
2023-05-20 06:16:53 +00:00
npmDepsHash = "sha256-KfzD8g6eAWvNjrGaVNt5x4I9o2E273S02o4nkn7BFSs=";
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;
};
}