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
908 B
Nix
Raw Normal View History

2024-11-17 11:17:45 +00:00
{
pkgs ? import <nixpkgs> { },
2024-12-12 00:46:15 +00:00
vendorHash ? "sha256-m11TeoLtYCNBlx5o/ZVmOUcXaGtSHEnbkH0uxlLa1Ek=",
2024-11-17 11:17:45 +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
};
2024-11-17 11:17:45 +00:00
in
rec {
2022-07-10 11:12:14 +00:00
inherit sops-install-secrets;
2024-11-17 11:17:45 +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-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
};
2024-11-17 11:17:45 +00:00
unit-tests = pkgs.callPackage ./pkgs/unit-tests.nix { };
}
// (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
})