-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
nixopsUnstable: 1.7pre2764_932bf4 -> 2.0.0-pre #83548
Conversation
4395130
to
8663d59
Compare
It's a variation of the expression from NixOS/nixpkgs#83548. With this change you can use the following snippet to build NixOps with a local plugin: ``` nix { pkgs ? import <nixpkgs> {} }: let nixops = import ./default.nix { inherit pkgs; }; in nixops.withPlugins(ps: [ (ps.callPackage ./path/to/plugin {}) ]) ```
8663d59
to
5a0184a
Compare
5a0184a
to
4661784
Compare
4661784
to
c9cf000
Compare
c9cf000
to
a878bac
Compare
Can this PR be reviewed please? |
@adisbladis I was wondering what would be required to build nixops 2.0 in Hydra? Would we need to bring back the 'release.nix'? |
I'd expect these files to go in Perhaps it needs a lockfile update because it's been six months Other than these two things it looks good to me. |
Indeed that makes more sense. I'll keep the old (nixops1) around where it is, but I'll move this new attribute elsewhere. |
a878bac
to
c200428
Compare
Thank you @adisbladis ❤️ |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tweag-nix-dev-update-7/11552/1 |
Motivation for this change
This is a an early draft of what NixOps 2.0 plugin management could look like based on NixOS/nixops#1256.
This adds a new top-level attribute
nixops2Unstable
that has a function calledwithPlugins
.To build NixOps with the AWS plugin enabled (the only one packaged so far) you'd use this expression:
Where
ps
is the pythonPackages set created fornixops2Unstable
.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)cc @grahamc @AmineChikhaoui