summaryrefslogtreecommitdiff
path: root/packages/hiccup.nix
blob: b0dc64d62a47165b6c30f1b9a98ebf20b74519b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  buildNpmPackage,
  fetchFromGitHub,
  lib,
}:
buildNpmPackage rec {
  pname = "hiccup";
  version = "0.4.3";

  src = fetchFromGitHub {
    owner = "ashwin-pc";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-JLuXQ4jZHI9wF1fgnnBPH/TaTHJL/zGCSuKc9hy4e28=";
  };

  npmDepsHash = "sha256-YPj7tzMUh56rJfxOVhye4cK6VS0azA/LiE9DMweGLuw=";

  CYPRESS_INSTALL_BINARY = "0";

  installPhase = ''
    runHook preInstall

    mv build $out

    runHook postInstall
  '';

  meta = with lib; {
    description = "A static start page to get to your most important links";
    inherit (finalAttrs.src.meta) homepage;
    license = licenses.mit;
    maintainers = with maintainers; [ azahi ];
  };
}