hoarder: 0.21.0 -> 0.22.0
[NixPkgs.git] / pkgs / by-name / ar / ariang / package.nix
blob783b7e67f18df997e892444d0c3ac377c7ec0ac1
2   lib,
3   fetchFromGitHub,
4   buildNpmPackage,
5   nix-update-script,
6 }:
8 buildNpmPackage rec {
9   pname = "ariang";
10   version = "1.3.9";
12   src = fetchFromGitHub {
13     owner = "mayswind";
14     repo = "AriaNg";
15     rev = version;
16     hash = "sha256-c3+iyw8LgdB29552jJQr4q5P2ZW80jC0aN+eaenEYFo=";
17   };
19   npmDepsHash = "sha256-N7ZK6wthBYAt8tU8sJE0QChAYxWfJ1HG5P+AjXZfIiw=";
21   makeCacheWritable = true;
23   installPhase = ''
24     runHook preInstall
26     mkdir -p $out/share
27     cp -r dist $out/share/ariang
29     runHook postInstall
30   '';
32   passthru.updateScript = nix-update-script { };
34   meta = with lib; {
35     description = "Modern web frontend making aria2 easier to use";
36     homepage = "http://ariang.mayswind.net/";
37     license = licenses.mit;
38     maintainers = with maintainers; [ stunkymonkey ];
39     platforms = platforms.unix;
40   };