summaryrefslogtreecommitdiff
path: root/tools/sops-inventory/default.nix
blob: d6a3d0c408eea77e2e70bd3783318ed7bda41b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ system, self, ... }:

let
  pkgs = self.legacyPackages.${system};
in
with pkgs.poetry2nix;
mkPoetryApplication {
  projectDir = cleanPythonSources { src = ./.; };

  nativeBuildInputs = with pkgs; [ makeWrapper ];

  overrides = overrides.withDefaults (self: super: {
    pyyaml = super.pyyaml.override { preferWheel = true; };
  });

  postInstall = ''
    wrapProgram $out/bin/sops-inventory \
      --prefix PATH : ${pkgs.lib.makeBinPath (with pkgs; [git])}
  '';
}