mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-02-03 19:48:53 +08:00
unit-test: pass in sops-install-secrets via callPackage
This commit is contained in:
parent
1674c94dc0
commit
563411a342
3 changed files with 13 additions and 13 deletions
|
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
stdenv,
|
||||
gnupg,
|
||||
util-linux,
|
||||
nix,
|
||||
sops-install-secrets,
|
||||
}:
|
||||
let
|
||||
sopsPkgs = import ../. { inherit pkgs; };
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "unit-tests";
|
||||
nativeBuildInputs = with pkgs; [
|
||||
bashInteractive
|
||||
stdenv.mkDerivation {
|
||||
name = "unittests";
|
||||
nativeBuildInputs = [
|
||||
gnupg
|
||||
util-linux
|
||||
nix
|
||||
sopsPkgs.sops-install-secrets.unittest
|
||||
sops-install-secrets.unittest
|
||||
];
|
||||
# allow to prefetch shell dependencies in build phase
|
||||
dontUnpack = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue