summaryrefslogtreecommitdiff
path: root/tools/sops-inventory/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sops-inventory/default.nix')
-rw-r--r--tools/sops-inventory/default.nix17
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
2let 3let
3 pkgs = self.legacyPackages.${system}; 4 pkgs = self.legacyPackages.${system};
4in mach-nix.lib.${system}.buildPythonPackage { 5in
5 pname = "sops-inventory"; 6with pkgs.poetry2nix;
6 version = "0.0.0"; 7mkPoetryApplication {
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 \