|
1 | 1 | { |
2 | 2 | description = "NixOps: a tool for deploying to [NixOS](https://nixos.org) machines in a network or the cloud"; |
3 | 3 |
|
4 | | - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; |
| 4 | + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small"; |
| 5 | + |
| 6 | + inputs.poetry2nix.url = "github:nix-community/poetry2nix"; |
| 7 | + inputs.poetry2nix.inputs.nixpkgs.follows = "nixpkgs"; |
5 | 8 |
|
6 | 9 | inputs.utils.url = "github:numtide/flake-utils"; |
7 | 10 |
|
8 | | - outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system: let |
| 11 | + outputs = { self, nixpkgs, poetry2nix, utils }: utils.lib.eachDefaultSystem (system: let |
9 | 12 | pkgs = import nixpkgs { inherit system; }; |
| 13 | + poetry2nix' = import poetry2nix { inherit pkgs; }; |
10 | 14 |
|
11 | | - pythonEnv = (pkgs.poetry2nix.mkPoetryEnv { |
| 15 | + pythonEnv = poetry2nix'.mkPoetryEnv { |
12 | 16 | projectDir = ./.; |
13 | | - overrides = [ |
14 | | - pkgs.poetry2nix.defaultPoetryOverrides |
15 | | - (import ./overrides.nix { inherit pkgs; }) |
16 | | - ]; |
17 | | - }); |
| 17 | + }; |
18 | 18 | linters.doc = pkgs.writers.writeBashBin "lint-docs" '' |
19 | 19 | set -eux |
20 | 20 | # When running it in the Nix sandbox, there is no git repository |
|
57 | 57 |
|
58 | 58 | defaultApp = apps.default; |
59 | 59 |
|
60 | | - packages.default = let |
61 | | - overrides = import ./overrides.nix { inherit pkgs; }; |
62 | | - |
63 | | - in pkgs.poetry2nix.mkPoetryApplication { |
| 60 | + packages.default = poetry2nix'.mkPoetryApplication { |
64 | 61 | projectDir = ./.; |
65 | 62 |
|
66 | 63 | propagatedBuildInputs = [ |
67 | 64 | pkgs.openssh |
68 | 65 | pkgs.rsync |
69 | 66 | ]; |
70 | 67 |
|
71 | | - overrides = [ |
72 | | - pkgs.poetry2nix.defaultPoetryOverrides |
73 | | - overrides |
74 | | - ]; |
75 | | - |
76 | 68 | # TODO: Re-add manual build |
77 | 69 | }; |
78 | 70 |
|
|
118 | 110 | name = "nixops-docs"; |
119 | 111 | # we use cleanPythonSources because the default gitignore |
120 | 112 | # implementation doesn't support the restricted evaluation |
121 | | - src = pkgs.poetry2nix.cleanPythonSources { |
| 113 | + src = poetry2nix'.cleanPythonSources { |
122 | 114 | src = ./.; |
123 | 115 | }; |
124 | 116 |
|
|
138 | 130 | name = "check-lint-docs"; |
139 | 131 | # we use cleanPythonSources because the default gitignore |
140 | 132 | # implementation doesn't support the restricted evaluation |
141 | | - src = pkgs.poetry2nix.cleanPythonSources { |
| 133 | + src = poetry2nix'.cleanPythonSources { |
142 | 134 | src = ./.; |
143 | 135 | }; |
144 | 136 | dontBuild = true; |
|
0 commit comments