diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-04-09 19:57:41 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-04-09 19:57:41 +0200 |
| commit | 24207674f36e900fd2aa51787cb70756413962c2 (patch) | |
| tree | f254d40b32d918783ae7698b902792963464269d /tools/sops-inventory/default.nix | |
| parent | 9c67ce4623ae1f2bf9a9d71de781c12054c1001c (diff) | |
| download | nixos-24207674f36e900fd2aa51787cb70756413962c2.tar nixos-24207674f36e900fd2aa51787cb70756413962c2.tar.gz nixos-24207674f36e900fd2aa51787cb70756413962c2.tar.bz2 nixos-24207674f36e900fd2aa51787cb70756413962c2.tar.xz nixos-24207674f36e900fd2aa51787cb70756413962c2.zip | |
deprecate mach_nix
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 \ |
