main
nix 26 lines 419 Bytes
Raw
1 {
2 lib,
3 mkpasswd,
4 python3,
5 sops,
6 }:
7
8 python3.pkgs.buildPythonApplication {
9 name = "encrypt-email";
10 src = ./.;
11
12 format = "other";
13
14 propagatedBuildInputs = [ python3.pkgs.click ];
15
16 installPhase = ''
17 mkdir -p $out/bin
18 mv ./encrypt-email.py $out/bin/encrypt-email
19 wrapProgram $out/bin/encrypt-email --prefix PATH : ${
20 lib.makeBinPath [
21 sops
22 mkpasswd
23 ]
24 }
25 '';
26 }