nixos/pkgs/OuterWildsTextAdventure.nix

32 lines
533 B
Nix
Raw Normal View History

{
srcs,
buildNpmPackage,
importNpmLock,
...
2025-07-13 06:04:55 +08:00
}:
let
inherit (srcs.OuterWildsTextAdventure) src date version;
in
2025-07-13 06:04:55 +08:00
buildNpmPackage {
pname = "OuterWildsTextAdventure";
version = "0-unstable.${date}-git${version}";
inherit src;
2025-07-13 06:04:55 +08:00
npmDeps = importNpmLock {
npmRoot = src;
};
2025-07-13 06:04:55 +08:00
npmBuildScript = "bundle";
2025-07-13 06:04:55 +08:00
installPhase = ''
runHook preInstall
2025-07-13 06:04:55 +08:00
mkdir -p $out
cp -rt $out/ index.html data p5.min.js bundle.js bundle.js.map
2025-07-13 06:04:55 +08:00
runHook postInstall
'';
2025-07-13 06:04:55 +08:00
npmConfigHook = importNpmLock.npmConfigHook;
}