2023-07-15 06:19:01 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {}
|
2023-12-18 22:03:19 +00:00
|
|
|
, vendorHash ? "sha256-olhFuF9TsvZamSb2uf3yWmKFJ0KHU5jmB7Ae9lmbEQw="
|
2023-07-15 06:19:01 +00:00
|
|
|
}: let
|
2020-07-12 16:18:12 +00:00
|
|
|
sops-install-secrets = pkgs.callPackage ./pkgs/sops-install-secrets {
|
2023-07-15 06:19:01 +00:00
|
|
|
inherit vendorHash;
|
2020-07-12 16:18:12 +00:00
|
|
|
};
|
2020-11-13 09:39:17 +00:00
|
|
|
in rec {
|
2022-07-10 11:12:14 +00:00
|
|
|
inherit sops-install-secrets;
|
2020-11-13 09:39:17 +00:00
|
|
|
sops-init-gpg-key = pkgs.callPackage ./pkgs/sops-init-gpg-key {};
|
2023-03-18 15:09:42 +00:00
|
|
|
default = sops-init-gpg-key;
|
|
|
|
|
2021-07-03 05:36:22 +00:00
|
|
|
sops-pgp-hook = pkgs.lib.warn ''
|
|
|
|
sops-pgp-hook is deprecated, use sops-import-keys-hook instead.
|
|
|
|
Also see https://github.com/Mic92/sops-nix/issues/98
|
|
|
|
'' pkgs.callPackage ./pkgs/sops-pgp-hook { };
|
|
|
|
sops-import-keys-hook = pkgs.callPackage ./pkgs/sops-import-keys-hook { };
|
2020-07-14 10:20:35 +00:00
|
|
|
|
2021-02-01 11:12:20 +00:00
|
|
|
# backwards compatibility
|
|
|
|
inherit (pkgs) ssh-to-pgp;
|
2020-11-13 09:39:17 +00:00
|
|
|
|
|
|
|
# used in the CI only
|
2022-05-15 05:48:48 +00:00
|
|
|
sops-pgp-hook-test = pkgs.callPackage ./pkgs/sops-pgp-hook-test.nix {
|
2023-07-15 06:19:01 +00:00
|
|
|
inherit vendorHash;
|
2020-11-13 09:39:17 +00:00
|
|
|
};
|
2022-05-15 05:48:48 +00:00
|
|
|
unit-tests = pkgs.callPackage ./pkgs/unit-tests.nix {};
|
2021-11-07 13:34:26 +00:00
|
|
|
} // (pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
|
2022-05-15 05:48:48 +00:00
|
|
|
lint = pkgs.callPackage ./pkgs/lint.nix {
|
|
|
|
inherit sops-install-secrets;
|
|
|
|
};
|
2020-11-13 09:39:17 +00:00
|
|
|
|
2022-05-15 05:48:48 +00:00
|
|
|
cross-build = pkgs.callPackage ./pkgs/cross-build.nix {
|
|
|
|
inherit sops-install-secrets;
|
|
|
|
};
|
2021-11-07 13:34:26 +00:00
|
|
|
})
|