-
-
Notifications
You must be signed in to change notification settings - Fork 80
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 haskell.nix
template
#40
Conversation
This depends on NixOS/templates#40 This issue make both `nix run haskell-nix#hix -- init` and `nix flake init --template haskell-nix#template --impure` do the same thing!
This depends on NixOS/templates#40 This issue makes both `nix run haskell-nix#hix -- init` and `nix flake init --template haskell-nix#template --impure` do the same thing!
This depends on NixOS/templates#40 This issue makes both `nix run haskell-nix#hix -- init` and `nix flake init --template haskell-nix#template --impure` do the same thing!
c8b4b28
to
1afb35a
Compare
@@ -77,6 +77,15 @@ | |||
description = "A simple Go package"; | |||
}; | |||
|
|||
haskell.nix = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is equivalent to
haskell = {
nix = { /* the template */ };
};
which will break nix flake show
since the schema is wrong even though nix flake init -t templates#haskell.nix
will still work (at least for some versions of nix flake CLI). Probably you mean to write
haskell.nix = { | |
"haskell.nix" = { |
but having an attribute name with a dot (.
) in it is a bit awkard, so maybe instead
haskell.nix = { | |
haskell_nix = { |
@@ -77,6 +77,15 @@ | |||
description = "A simple Go package"; | |||
}; | |||
|
|||
haskell.nix = { | |||
path = ./go-hello; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is bringing in the wrong template
path = ./go-hello; | |
path = ./haskell.nix; |
* Fix #1558: add flake template for `nix flake init` This depends on NixOS/templates#40 This issue makes both `nix run haskell-nix#hix -- init` and `nix flake init --template haskell-nix#template --impure` do the same thing! * Update getting-started-flakes.md
https://github.com/input-output-hk/haskell.nix