#67 had some bit rot when it was merged. Haskell.nix does not depend on `flake-utils` internally any more (so we can't get the patched version from there).
Now that https://github.com/numtide/flake-utils/pull/97 is merged we can use `numtide/flake-utils` directly in this template.
* added a typescript-pnpm template
* moved to pnpm subfolder
* fixed missing semicolon
* made use of markup for welcome text
* removed vscodium from template to simplify
* added typescript-p5js template, and cleaned up the welcome text for typescript templates
* fixed extraneous };
* added .envrc to typescript templates
* fixed bug in p5js template
* replaced package name and removed unnecessary allowUnfree from typescript templates
* fixed p5js not being imported by default
* Update typescript/pnpm-p5js/flake.nix
Co-authored-by: tomberek <tomberek@users.noreply.github.com>
---------
Co-authored-by: tomberek <tomberek@users.noreply.github.com>
I had to give a nix training yesterday trying to explain nix, how flakes
are purer than nix <2.4 than I asked the students to run `nix flake init`
which doesnt generate any input.
It forces to introduce the concept of registry and makes it less "pure"
as now your inputs are hidden.
I add the inputs here to make it more newcomer friendly, and I think it
makes developinbg your own flake easier with inputs laid out fromn the
start.
see https://github.com/NixOS/nix/issues/7005
The version of `flake-utils` we use in haskell.nix includes https://github.com/numtide/flake-utils/pull/97
The `packages` attribute was replaced instead of extended by the code that adds `packages.default`.
It took me bit to figure out how to get development dependencies into a go
project when converting from shell.nix to flake.nix. I'm hoping adding this
here will help those following behind.
Some credit for working out how to do this from
https://xeiaso.net/blog/nix-flakes-1-2022-02-21
stable branches in nixpkgs are named like so 'nixos-<release>'
updated flake lock with
$ nix flake lock --update-input nixpkgsGitHubBranch
some of the inputs got shuffled around
Co-authored-by: Tim Häring <tim.haering@posteo.net>