8 pname = "react-static";
11 src = fetchFromGitHub {
12 owner = "react-static";
13 repo = "react-static";
15 hash = "sha256-dlYmD0vgEqWxYf7E0VYstZMAuNDGvQP7xDgHo/wmlUs=";
18 packageJSON = ./package.json;
20 offlineCache = fetchYarnDeps {
21 yarnLock = "${src}/yarn.lock";
22 hash = "sha256-SNnJPUzv+l2HXfA6NKYpJvn/DCX3a42JQ3N0+XYKbd8=";
28 yarn --cwd deps/react-static/packages/react-static --offline build
38 mkdir -p "$out/lib/node_modules"
39 mv deps/react-static/packages/react-static "$out/lib/node_modules"
40 mv node_modules "$out/lib/node_modules/react-static"
42 ln -s "$out/lib/node_modules/react-static/bin" "$out"
48 changelog = "https://github.com/react-static/react-static/blob/${src.rev}/CHANGELOG.md";
49 description = "A progressive static site generator for React";
50 homepage = "https://github.com/react-static/react-static";
51 license = lib.licenses.mit;
52 mainProgram = "react-static";
53 maintainers = with lib.maintainers; [ ];