about summary refs log tree commit diff
path: root/packages/hiccup.nix
blob: 152a5e988d166494043c323e6aa8817dbc3246cf (plain) (blame)
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=";

  installPhase = ''
    runHook preInstall

    mv build $out

    runHook postInstall
  '';

  CYPRESS_INSTALL_BINARY = "0";

  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];
  };
}

Consider giving Nix/NixOS a try! <3