blob: 94c455e5bd2ef6ccdc630b0f5b6522a927196454 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ system, self, mach-nix, ... }:
let
pkgs = self.legacyPackages.${system};
in mach-nix.lib.${system}.buildPythonPackage {
pname = "sops-inventory";
version = "0.0.0";
src = pkgs.lib.sourceByRegex ./. ["^setup\.py$" "^sops_inventory(/[^/]+.*)?$"];
ignoreDataOutdated = true;
requirements = ''
pyyaml
'';
postInstall = ''
wrapProgram $out/bin/sops-inventory \
--set-default SOPS_INVENTORY_BASE ${self}
'';
}
|