blob: 938d99ce0cf8b62a243785bb78b3f6f0fb1b0206 (
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 \
--prefix PATH : ${pkgs.lib.makeBinPath (with pkgs; [git])}
'';
}
|