1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00
sops-nix/default.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

2023-07-15 06:19:01 +00:00
{ pkgs ? import <nixpkgs> {}
, vendorHash ? "sha256-xHScXL3i2oxJSJsvOC+KqLCA5Psu3ht7DQNrh0rB1rA="
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;
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
})