Commit Graph

48 Commits

Author SHA1 Message Date
jopejoe1
fe7027463d nixops_unstablePlugins: put removed packages behind allowAliases 2025-04-03 17:33:12 +02:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Emily
2ffdba973c nixops_unstablePlugins.nixops-aws: drop
Marked as broken for months, and depends on boto which has been
deprecated for years and is now also broken and due for removal.
2024-09-22 14:57:38 +01:00
Sebastián Mancilla
d05ec2ca0c Merge pull request #327279 from Mic92/nixops
Nixops: remove broken plugins
2024-08-17 17:59:15 -04:00
adisbladis
e0816431a2 treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
  python' = python3.override {
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.

And the same with `self`:
```
with import <nixpkgs> { };
let
  python' = python3.override {
    self = python';
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.

This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
2024-08-03 12:18:56 +12:00
Jörg Thalheim
8848c9c1d6 nixops: mark nixops-aws as broken and remove from the full list 2024-07-15 08:54:52 +02:00
Jörg Thalheim
d042bd5c30 nixops: Remove broken nixops plugins 2024-07-15 08:54:44 +02:00
Robert Hensing
5e1bf24bc9 nixops_unstable_*: Expose internals politely 2024-03-06 22:47:24 +01:00
Robert Hensing
114af421c5 nixops_unstable_*: Test addAvailablePlugins and withPlugins commute
Actually the lack of instantiation is the main purpose, but it's nice
to test commutativity too. (Even if it's just one example...)
2024-03-06 22:47:24 +01:00
Robert Hensing
5a1285c216 nixops_unstable_*: Add addAvailablePlugins 2024-03-06 22:47:24 +01:00
Robert Hensing
8b9543baac nixops_unstable_*: Forward overrideAttrs 2024-03-06 22:47:24 +01:00
Robert Hensing
88e807a141 nixops_unstable_*: Remove unnecessary r fixpoint 2024-03-06 22:47:24 +01:00
Robert Hensing
576be941f8 nixops_unstable_*: Remove ad-hoc selectedPlugins overriding state 2024-03-06 22:47:24 +01:00
Robert Hensing
f5f2ef33fa nixops_unstable_*: Remove ad-hoc availablePlugins overriding state 2024-03-06 22:47:24 +01:00
Robert Hensing
48150e79c5 nixops_unstable_*: Use explicit fixpoint with encapsulation
No change in behavior. Just explicit recursion that's not taken
advantage of.

(This is working towards a managable setup for adding a bunch of
overriding methods that make life easier for external plugin
packagers.)
2024-03-06 22:47:23 +01:00
Robert Hensing
27b08a25cc pkgs/applications/networking/cluster/nixops/default.nix: Format 2024-03-06 22:47:23 +01:00
Robert Hensing
de55e7313f nixops_unstable_minimal.tests.withAPlugin: init
This way ofborg will do a better job if we only specify
nixops_unstable as a prefix.
2024-03-06 22:47:23 +01:00
Robert Hensing
c5180c311e nixops_unstable_*: Add selectedPlugins attribute 2024-03-06 22:47:23 +01:00
Robert Hensing
695f75a8a3 nixops_unstable_*: Rename plugins attribute to availablePlugins 2024-03-06 22:47:23 +01:00
Robert Hensing
bc2a13998c nixops_unstable_*: Internal rename 2024-03-06 22:47:23 +01:00
Robert Hensing
8d9f5ca31a nixops_unstable_*: Memoize availablePlugins 2024-03-06 22:47:23 +01:00
Robert Hensing
663b3d4be7 nixops_unstable*: Make withPlugins.*.tests.nixos behave correctly 2024-03-06 22:47:22 +01:00
Robert Hensing
4a29e5442d nixops_unstable -> nixops_unstable_minimal.withPlugins
Providing the whole set by default is not feasible, and anything
smaller than that would be too arbitrary.

The aliases.nix error message puts users on the right path to get
exactly the plugins they need.

nixops_unstable_full probably won't be in a buildable state, so
we can't recommend it. It may be useful for CI.
2024-03-06 22:47:22 +01:00
K900
3f2deb9e98 nixops (unstable): switch to non-poetry2nix packaging
Mostly nix-init with some manual fixups. withPlugins implementation copied from Poetry.
2023-10-26 19:05:41 +03:00
Robert Hensing
bb53f1d5b5 nixops_unstable: Update maintainers
Correct me if I'm wrong.
2023-10-24 14:24:12 +02:00
Robert Schütz
e7aa53bad0 nixops_unstable: mark cryptography insecure 2023-09-07 21:18:01 -07:00
Robert Hensing
4b51c5360f nixops_unstable: Fix tests attribute
The .overrideAttrs part is ok now, but a "passthru' workaround is
necessary now. See https://github.com/NixOS/nixpkgs/pull/247520
2023-08-09 15:47:13 +02:00
Robert Hensing
7f3706f7e1 nixops_unstable: Set meta.mainProgram 2023-05-26 15:58:07 +02:00
Robert Schütz
f2bb0266c1 nixops_unstable: mark cryptography insecure 2023-04-02 20:55:35 -07:00
Robert Hensing
06c338f918 nixops_unstable: 2022-10-07 -> 2023-01-03 2023-01-08 19:09:17 +01:00
lukebfox
0a319cbdc2 nixops-hetznercloud: init at 0.1.2 2022-12-19 00:15:22 +00:00
Robert Schütz
823d4b7e8c Merge pull request #205342 from dotlambda/nixops-insecure
nixops: mark certifi insecure
2022-12-11 13:08:08 -08:00
Robert Schütz
218122fa5c nixopsUnstable: mark certifi insecure 2022-12-09 10:04:57 -08:00
adisbladis
1d8fe07ab9 nixopsUnstable: remove hacky override of pythonOutputDistPhase
poetry2nix is completely opting out of this hook and hence it's a non-issue.
2022-10-10 15:43:56 +13:00
adisbladis
f439af5ce6 nixopsUnstable: fix build 2022-10-08 11:33:33 +13:00
adisbladis
8710df5d26 nixopsUnstable: update 2022-10-08 11:33:33 +13:00
Andy Chun @noneucat
ea7336a084 nixops_unstable: set Python interpreter to python39
The package encounters a build error when building with Python 3.10 due to
API breakage (collections.MutableMapping -> collections.abc.MutableMapping).
2022-06-23 15:46:26 -07:00
Robert Hensing
5b4c63172c nixops_unstable: Fall back to "dirty" when rev missing
Doesn't occur with generated code, but makes it easy to temporarily
set the source to a path in the `poetry-git-overlay.nix` file.
2022-03-03 14:04:36 +01:00
Robert Hensing
0bd069dd41 nixopsUnstable: Set version to <version>-pre-<commit> 2022-03-03 12:42:48 +01:00
Robert Hensing
d0cd160ca2 nixopsUnstable: Add nixops-digitalocean plugin 2021-11-19 20:48:53 +01:00
Robert Hensing
9ae4934062 nixopsUnstable: Add nixops-hetzner plugin 2021-11-19 20:48:53 +01:00
Robert Hensing
9c1e72507b nixopsUnstable: Sort plugins 2021-11-19 20:48:53 +01:00
xaverdh
03a257e5a3 treewide: quote urls according to rfc 0045 (#145260)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-11-10 11:37:56 +01:00
Robert Hensing
b4dcb690f3 nixopsUnstable: Add nixops-hercules-ci 2021-10-18 21:58:53 +02:00
Robert Hensing
c64881b6da nixopsUnstable: Add test 2021-10-18 12:07:01 +02:00
figsoda
4790fab62f nixopsUnstable: fix version output 2021-09-20 08:58:18 -04:00
Sandro Jäckel
2d11d214c7 nixops: remove unused input 2021-02-17 23:12:28 +01:00
adisbladis
a2a05d2bfe nixopsUnstable: 1.7pre2764_932bf4 -> 2.0.0-pre 2021-02-03 16:03:03 +01:00