nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildNpmPackage,
3 callPackage,
4}:
5let
6 common = callPackage ./common.nix { };
7in
8buildNpmPackage {
9 pname = "openbooks-frontend";
10 inherit (common) version;
11
12 src = "${common.src}/server/app";
13
14 npmDepsHash = "sha256-OtXPOFK18b6tzFIvXkThafLUw0GlioRmxjzcKYeTalU=";
15
16 installPhase = ''
17 runHook preInstall
18
19 cp -r dist $out
20
21 runHook postInstall
22 '';
23
24 meta = common.meta // {
25 description = "Openbooks frontend";
26 };
27}