Skip to content

Add flake.nix#106

Open
akirak wants to merge 1 commit intoBurntSushi:masterfrom
akirak:flake-init
Open

Add flake.nix#106
akirak wants to merge 1 commit intoBurntSushi:masterfrom
akirak:flake-init

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