diff options
Diffstat (limited to 'tools/sops-inventory/default.nix')
-rw-r--r-- | tools/sops-inventory/default.nix | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/tools/sops-inventory/default.nix b/tools/sops-inventory/default.nix index 938d99ce..32972ba9 100644 --- a/tools/sops-inventory/default.nix +++ b/tools/sops-inventory/default.nix | |||
@@ -1,16 +1,13 @@ | |||
1 | { system, self, mach-nix, ... }: | 1 | { system, self, ... }: |
2 | |||
2 | let | 3 | let |
3 | pkgs = self.legacyPackages.${system}; | 4 | pkgs = self.legacyPackages.${system}; |
4 | in mach-nix.lib.${system}.buildPythonPackage { | 5 | in |
5 | pname = "sops-inventory"; | 6 | with pkgs.poetry2nix; |
6 | version = "0.0.0"; | 7 | mkPoetryApplication { |
7 | 8 | projectDir = cleanPythonSources { src = ./.; }; | |
8 | src = pkgs.lib.sourceByRegex ./. ["^setup\.py$" "^sops_inventory(/[^/]+.*)?$"]; | ||
9 | 9 | ||
10 | ignoreDataOutdated = true; | 10 | nativeBuildInputs = with pkgs; [ makeWrapper ]; |
11 | requirements = '' | ||
12 | pyyaml | ||
13 | ''; | ||
14 | 11 | ||
15 | postInstall = '' | 12 | postInstall = '' |
16 | wrapProgram $out/bin/sops-inventory \ | 13 | wrapProgram $out/bin/sops-inventory \ |