-
Notifications
You must be signed in to change notification settings - Fork 81
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
flake-utils.lib.mkApp is broken with nix 2.8 #61
Comments
is that fixed? |
This issue is still happening when using |
It does not seem like this issue should have been closed. |
It seems unnecessary (when there's only one app defined?). `nix run .# -- --help` works just fine without it. This is a workaround for numtide/flake-utils#61 (closed but not fixed!).
EDIT: Discovered that the problem I was describing underneath the divider, below, was because I wasn't conforming to c0e246b . After respecting that commit and moving my apps = rec {
go_1_18-fips = flake-utils.lib.mkApp { drv = packages.go_1_18-fips; exePath = "/bin/go";};
default = go_1_18-fips;
}; I have a bunch of files in apps.defaultApp = flake-utils.lib.mkApp { drv = packages.go_1_18-fips; name = "go";}; However, the below works just fine as apps.go_1_18-fips = flake-utils.lib.mkApp { drv = packages.go_1_18-fips; name = "go";}; It's possible this has been the case for as long as $ nix --version
nix (Nix) 2.10.3 $ cat flake.lock | grep numtide -C 10
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1659877975,
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
}, |
Describe the bug
To Reproduce
Steps to reproduce the behavior:
nix run
on a repo with the an app made withflake-utils.lib.mkApp
error: attribute 'defaultApp.x86_64-linux' should have type 'derivation'
Expected behavior
the app executes normally
System information
nix 2.8.0 linux
Additional context
nix 2.8.0 has more strictness the nix 2.7 which has broken flake-utils
The text was updated successfully, but these errors were encountered: