Skip to content

rutrum/wasm4-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm4-nix: A nix-flake for wasm4 fantasy console

This currently packages just the binary, and doesn't work for running natively yet (need to link libraries or something.)

WIP.

I was able to package the web-devtool directory and the w4 cli itself, but was unsuccessful in packaging the wasm4 runtime needed to run the carts. The issue is that the web-devtools dependency is references with a relative link that looks up from runtimes/web directory like so:

wasm4/runtimes/web $ rg @wasm4 package.json
19:    "@wasm4/web-devtools": "file:../../devtools/web"

I'm unsure how to build this given this contraint. buildNpmPackage from nixpkgs will download the npm dependencies for me but won't look outside the runtimes/web folder for additional files (understandably). I'm not sure how to build this from the root directory itself either.

You should make a PR if you have any ideas. I'll have to return to this when I become more familiar with derivations.

About

Nix flake for the WASM-4 fantasy console.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages