about summary refs log tree commit diff
path: root/packages/hiccup.nix
blob: f74de742a1cc4da02b81316cbfd01c9134ef1394 (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.5.0";

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

  npmDepsHash = "sha256-zxpimQtX03/+0/DgeQEDia82LAd14R4HcGFgASLevHE=";

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

Consider giving Nix/NixOS a try! <3