add nix flake

- add following functionality:
  - nix develop with direnv support
  - nix run and nix shell
  - nix fmt for flake.nix
  - and package overlay for https://github.com/NixOS/nixpkgs/pull/225502

- useful docs
  - https://stackoverflow.com/questions/53272197/how-do-i-override-the-libc-in-a-nix-package-to-be-musl
  - dd3aca2d0b/pkgs/top-level/stage.nix (L136)

- inspired by https://github.com/typst/typst/blob/main/flake.nix
This commit is contained in:
StepBroBD 2023-06-02 21:34:19 -06:00
parent 19f79a4349
commit 3967415eca
Failed to extract signature
5 changed files with 153 additions and 1 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake