diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-01-30 12:20:23 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-01-30 12:20:23 +0100 |
| commit | cfc871cce6aefaa0ff64619780a807cba761c6b2 (patch) | |
| tree | 965e8276ed36f11698b6c7d6eadab9f88d5f97c5 /tools/sops-inventory/default.nix | |
| parent | aa54fe89b98d354d21141c589332ce7950ef2e59 (diff) | |
| download | nixos-cfc871cce6aefaa0ff64619780a807cba761c6b2.tar nixos-cfc871cce6aefaa0ff64619780a807cba761c6b2.tar.gz nixos-cfc871cce6aefaa0ff64619780a807cba761c6b2.tar.bz2 nixos-cfc871cce6aefaa0ff64619780a807cba761c6b2.tar.xz nixos-cfc871cce6aefaa0ff64619780a807cba761c6b2.zip | |
...
Diffstat (limited to 'tools/sops-inventory/default.nix')
| -rw-r--r-- | tools/sops-inventory/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/sops-inventory/default.nix b/tools/sops-inventory/default.nix new file mode 100644 index 00000000..94c455e5 --- /dev/null +++ b/tools/sops-inventory/default.nix | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | { system, self, mach-nix, ... }: | ||
| 2 | let | ||
| 3 | pkgs = self.legacyPackages.${system}; | ||
| 4 | in mach-nix.lib.${system}.buildPythonPackage { | ||
| 5 | pname = "sops-inventory"; | ||
| 6 | version = "0.0.0"; | ||
| 7 | |||
| 8 | src = pkgs.lib.sourceByRegex ./. ["^setup\.py$" "^sops_inventory(/[^/]+.*)?$"]; | ||
| 9 | |||
| 10 | ignoreDataOutdated = true; | ||
| 11 | requirements = '' | ||
| 12 | pyyaml | ||
| 13 | ''; | ||
| 14 | |||
| 15 | postInstall = '' | ||
| 16 | wrapProgram $out/bin/sops-inventory \ | ||
| 17 | --set-default SOPS_INVENTORY_BASE ${self} | ||
| 18 | ''; | ||
| 19 | } | ||
