Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add nix support #58

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Conversation

chadac
Copy link
Contributor

@chadac chadac commented Oct 4, 2023

  • add flake.nix and default.nix for Nix builds

tests

  • nix build .# works
  • nix run .# works
  • nix develop provisions a dev environment with zig

@booniepepper
Copy link
Collaborator

Works on the first try! 😗 👌 ✨

❯ nix run
dt 1.2.4
Learn from my mistakes - someone should.
» [ 1 2 3 4 5 6 7 8 9 ] [ \n: [ ] [ "*" push ] n times  unwords ] map pls
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *
* * * * * * * * *
» 
❯ nix develop
[hiljusti@blackbox dt]$ which zig
/nix/store/6vgflg2gmqs0cn6n3h2npimfcybizwwp-zig-0.11.0/bin/zig
[hiljusti@blackbox dt]$ zig build
[hiljusti@blackbox dt]$ zig-out/bin/dt
dt 1.2.4
Keep your stick on the ice.
» quit
[hiljusti@blackbox dt]$

@booniepepper booniepepper merged commit c38e8b6 into so-dang-cool:core Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants