effcd31651
We need 'meta.ci' to be an attribute set for new CI features. Change-Id: I83d04e2d74e42e49fe739b049ee4ba799f6d5d86 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5007 Tested-by: BuildkiteCI Reviewed-by: ezemtsov <eugene.zemtsov@gmail.com> Reviewed-by: wpcarro <wpcarro@gmail.com>
24 lines
473 B
Nix
24 lines
473 B
Nix
{ pkgs, ... }:
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "ideal-website";
|
|
src = builtins.path { path = ./.; name = "contentful"; };
|
|
buildInputs = with pkgs; [
|
|
nodejs
|
|
# Exposes lscpu for parcel.js
|
|
utillinux
|
|
];
|
|
# parcel.js needs number of CPUs
|
|
PARCEL_WORKERS = "1";
|
|
buildPhase = ''
|
|
export HOME="."
|
|
npx parcel build index.html
|
|
'';
|
|
|
|
installPhase = ''
|
|
mv dist $out
|
|
'';
|
|
|
|
# TODO(wpcarro): This doesn't build at all.
|
|
meta.ci.skip = true;
|
|
}
|