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
NixOps does not work with Nix 2.0 #873
Comments
...hmm. On second thought, I'm not sure the one bug I found so far is a Nix 2.0 bug per se. The timing is suspicious, but it might be coincidence. |
I'm stuck with the same problem |
I duck-taped the issue with the following override in my personal overlay:
|
Stuck with the same problem. (@seppeljordan the patch helped, thanks) |
a patch was pushed to master yesterday. |
I'm a newbie at this, I have self: super: {
nixops = super.nixops.overrideDerivation (
old: {
patchPhase = ''
substituteInPlace nix/eval-machine-info.nix \
--replace 'system.nixosVersion' 'system.nixos.version'
'';
}
);
} Using I presume I have something basic wrong in either the file location or contents. Any tips? |
There's nothing immediately wrong with this... You do you use it? Did you try to run nix-shell -p nixops ? Does it pick up the modified version?
Le 28 février 2018 17:53:54 GMT+02:00, Alan Zimmerman <notifications@github.com> a écrit :
…I'm a newbie at this, I have `~/.config/nixpkgs/overlays/nixops.nix`
containing
```nix
self: super: {
nixops = super.nixops.overrideDerivation (
old: {
patchPhase = ''
substituteInPlace nix/eval-machine-info.nix \
--replace 'system.nixosVersion' 'system.nixos.version'
'';
}
);
}
```
Using `nixpkgs https://nixos.org/channels/nixpkgs-unstable` on Debian.
I presume I have something basic wrong in either the file location or
contents. Any tips?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#873 (comment)
--
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
|
@jpotier thanks, it does actually work, I had been switching channels and not properly updated, when I ran |
Great!
Le 28 février 2018 19:25:40 GMT+02:00, Alan Zimmerman <notifications@github.com> a écrit :
…
@jpotier thanks, it *does* actually work, I had been switching channels
and not properly updated, when I ran `nix-shell -p nixops` it brought
in the current version again, and the overlay works as expected.
Thanks.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#873 (comment)
--
Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
|
Let's round up assorted bugs here. Only one I've spotted so far, but I'll probably find more.
attribute ‘nixosVersion’ missing, at nix/eval-machine-info.nix:284
These attributes have been renamed to
nixos.version
and so forth.The text was updated successfully, but these errors were encountered: