Nix builders for Deno projects.
Still a WIP, but here's what works / is done:
-
denoPlatform.mkDenoDir
: cache Deno dependencies in a pure Nix expression, no external scripts needed. - scripts without dependencies.
- https://deno.land, https://esm.sh style dependencies.
- NPM dependencies. I use this repo to build my Lume website, which has lots of NPM dependencies, please open an issue if you run into NPM problems!
-
denoPlatform.mkDenoDerivation
: a basicstdenv.mkDerivation
wrapper that handles dependencies for you. - helper for
deno compile
. - helper for
deno bundle
. Newer alternatives likedeno_emit
are still a TODO. - more helpful docs, right now, I'd suggest having a look at
./ci.nix
for basic usage info. - a release.
I love Deno. 🥰