2020-07-12 16:18:12 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {} }: let
|
2022-05-14 04:29:02 +00:00
|
|
|
vendorSha256 = "sha256-nqA2zzCsWXCllpsss0tjjo4ivi3MVuEM3W6dEZc5KAc=";
|
2020-11-13 09:39:17 +00:00
|
|
|
|
2022-05-15 06:07:37 +00:00
|
|
|
buildGoModule = if pkgs.lib.versionOlder pkgs.go.version "1.17" then pkgs.buildGo117Module else pkgs.buildGoModule;
|
2020-07-12 16:18:12 +00:00
|
|
|
sops-install-secrets = pkgs.callPackage ./pkgs/sops-install-secrets {
|
2022-05-15 06:07:37 +00:00
|
|
|
inherit buildGoModule;
|
2020-07-12 16:18:12 +00:00
|
|
|
inherit vendorSha256;
|
|
|
|
};
|
2020-11-13 09:39:17 +00:00
|
|
|
in rec {
|
|
|
|
sops-init-gpg-key = pkgs.callPackage ./pkgs/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 {
|
2020-11-13 09:39:17 +00:00
|
|
|
inherit vendorSha256;
|
|
|
|
};
|
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 {
|
|
|
|
inherit sops-install-secrets;
|
2020-11-13 09:39:17 +00:00
|
|
|
|
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
|
|
|
})
|