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

Add flake.nix #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add flake.nix #106

wants to merge 1 commit into from

Conversation

akirak
Copy link

@akirak akirak commented Jun 8, 2021

With this PR, you can simply build erd using the following command:

nix build .

It will also allow you to run the program without explicitly installing it:

nix run BurntSushi/erd -- FLAGS...

I've just used a flake.nix template from Serokell: https://github.com/serokell/templates/tree/master/haskell-cabal2nix

This uses the Nix flakes feature. It is unavailable on stable releases of Nix yet, but you can replace default.nix by following this procedure: https://nixos.wiki/wiki/Flakes#Using_flakes_project_from_a_legacy_Nix.

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.

1 participant