unit-test: pass in sops-install-secrets via callPackage

This commit is contained in:
Jörg Thalheim 2024-11-24 15:28:29 +01:00
parent 1674c94dc0
commit 563411a342
3 changed files with 13 additions and 13 deletions

View file

@ -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;