2020-08-18 13:00:17 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
pkgs.stdenv.mkDerivation {
|
2020-03-24 14:27:30 +01:00
|
|
|
name = "ideal-website";
|
2020-07-02 14:28:59 +02:00
|
|
|
src = builtins.path { path = ./.; name = "contentful"; };
|
2020-03-24 14:27:30 +01:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
nodejs
|
|
|
|
# Exposes lscpu for parcel.js
|
|
|
|
utillinux
|
|
|
|
];
|
|
|
|
# parcel.js needs number of CPUs
|
|
|
|
PARCEL_WORKERS = "1";
|
|
|
|
buildPhase = ''
|
2021-12-14 04:51:48 +01:00
|
|
|
export HOME="."
|
2020-03-24 14:27:30 +01:00
|
|
|
npx parcel build index.html
|
|
|
|
'';
|
2021-12-14 04:51:48 +01:00
|
|
|
|
2020-03-24 14:27:30 +01:00
|
|
|
installPhase = ''
|
|
|
|
mv dist $out
|
|
|
|
'';
|
2021-12-14 04:51:48 +01:00
|
|
|
|
|
|
|
# TODO(wpcarro): This doesn't build at all.
|
2022-01-19 18:57:17 +01:00
|
|
|
meta.ci.skip = true;
|
2020-03-24 14:27:30 +01:00
|
|
|
}
|