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

vendorHash: make it overridable

This commit is contained in:
Jörg Thalheim 2023-07-15 08:19:01 +02:00 committed by mergify[bot]
parent 5fc5cddafd
commit 62a7c95c8c
3 changed files with 9 additions and 9 deletions

View file

@ -1,8 +1,8 @@
{ pkgs ? import <nixpkgs> {} }: let
vendorSha256 = "sha256-C6YyhJZyspsTQWcogDe5ERAe69KtZEv73wO76oHa8QQ=";
{ pkgs ? import <nixpkgs> {}
, vendorHash ? "sha256-C6YyhJZyspsTQWcogDe5ERAe69KtZEv73wO76oHa8QQ="
}: let
sops-install-secrets = pkgs.callPackage ./pkgs/sops-install-secrets {
inherit vendorSha256;
inherit vendorHash;
};
in rec {
inherit sops-install-secrets;
@ -20,7 +20,7 @@ in rec {
# used in the CI only
sops-pgp-hook-test = pkgs.callPackage ./pkgs/sops-pgp-hook-test.nix {
inherit vendorSha256;
inherit vendorHash;
};
unit-tests = pkgs.callPackage ./pkgs/unit-tests.nix {};
} // (pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {

View file

@ -1,4 +1,4 @@
{ stdenv, lib, buildGoModule, path, pkgs, vendorSha256, go }:
{ lib, buildGoModule, path, pkgs, vendorHash, go }:
buildGoModule {
pname = "sops-install-secrets";
version = "0.0.1";
@ -29,7 +29,7 @@ buildGoModule {
fi
'';
inherit vendorSha256;
inherit vendorHash;
meta = with lib; {
description = "Atomic secret provisioning based on sops";

View file

@ -1,9 +1,9 @@
{ buildGoModule, vendorSha256 }:
{ buildGoModule, vendorHash }:
buildGoModule {
name = "sops-pgp-hook-test";
src = ../.;
inherit vendorSha256;
inherit vendorHash;
buildPhase = ''
go test -c ./pkgs/sops-pgp-hook
install -D sops-pgp-hook.test $out/bin/sops-pgp-hook.test