package OuterWildsTextAdventureWeb as caddy service
This commit is contained in:
parent
5844040624
commit
cae1182840
10 changed files with 119 additions and 16 deletions
30
pkgs/OuterWildsTextAdventure.nix
Normal file
30
pkgs/OuterWildsTextAdventure.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
srcs,
|
||||
buildNpmPackage,
|
||||
importNpmLock,
|
||||
...
|
||||
}: let
|
||||
inherit (srcs.OuterWildsTextAdventure) src date version;
|
||||
in
|
||||
buildNpmPackage {
|
||||
pname = "OuterWildsTextAdventure";
|
||||
version = "0-unstable.${date}-git${version}";
|
||||
inherit src;
|
||||
|
||||
npmDeps = importNpmLock {
|
||||
npmRoot = src;
|
||||
};
|
||||
|
||||
npmBuildScript = "bundle";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
cp -rt $out/ index.html data p5.min.js bundle.js bundle.js.map
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
npmConfigHook = importNpmLock.npmConfigHook;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue