1 { stdenv, yarn2nix-moretea, nodejs_16 }:
3 source = builtins.fetchGit {
4 url = "https://git.immae.eu/github/bastienwirtz/homer.git";
5 ref = "gitolite_local/local_changes";
6 rev = "f2f414a2e9b02d645acb49f62fdfcceb8eca7d19";
7 narHash = "sha256-WrAx4gLKOVpwHtLh57ZLoWaUnfohwYlIX/LrwORIbFU=";
9 yarnModules = yarn2nix-moretea.mkYarnModules rec {
14 packageJSON = "${source}/package.json";
15 yarnLock = "${source}/yarn.lock";
16 yarnNix = ./landing/yarn-packages.nix;
19 stdenv.mkDerivation rec {
24 buildInputs = [ yarnModules yarn2nix-moretea.yarn ];
26 ln -s ${yarnModules}/node_modules .
29 # See https://stackoverflow.com/questions/74548318/how-to-resolve-error-error0308010cdigital-envelope-routinesunsupported-no
30 export NODE_OPTIONS=--openssl-legacy-provider
35 cp ${./landing}/*.php $out/
36 ln -s service-worker.js $out/worker.js