add nix flake (#210)

- 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-04 09:57:28 -06:00 committed by GitHub
parent 19f79a4349
commit 49d64805ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 153 additions and 1 deletions

9
.gitignore vendored
View file

@ -1,3 +1,10 @@
/.idea
# Rust
/target
# Editor
/.idea
/.vscode
# Nix
/result
/.direnv