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:
parent
5fc5cddafd
commit
62a7c95c8c
3 changed files with 9 additions and 9 deletions
10
default.nix
10
default.nix
|
@ -1,8 +1,8 @@
|
||||||
{ pkgs ? import <nixpkgs> {} }: let
|
{ pkgs ? import <nixpkgs> {}
|
||||||
vendorSha256 = "sha256-C6YyhJZyspsTQWcogDe5ERAe69KtZEv73wO76oHa8QQ=";
|
, vendorHash ? "sha256-C6YyhJZyspsTQWcogDe5ERAe69KtZEv73wO76oHa8QQ="
|
||||||
|
}: let
|
||||||
sops-install-secrets = pkgs.callPackage ./pkgs/sops-install-secrets {
|
sops-install-secrets = pkgs.callPackage ./pkgs/sops-install-secrets {
|
||||||
inherit vendorSha256;
|
inherit vendorHash;
|
||||||
};
|
};
|
||||||
in rec {
|
in rec {
|
||||||
inherit sops-install-secrets;
|
inherit sops-install-secrets;
|
||||||
|
@ -20,7 +20,7 @@ in rec {
|
||||||
|
|
||||||
# used in the CI only
|
# used in the CI only
|
||||||
sops-pgp-hook-test = pkgs.callPackage ./pkgs/sops-pgp-hook-test.nix {
|
sops-pgp-hook-test = pkgs.callPackage ./pkgs/sops-pgp-hook-test.nix {
|
||||||
inherit vendorSha256;
|
inherit vendorHash;
|
||||||
};
|
};
|
||||||
unit-tests = pkgs.callPackage ./pkgs/unit-tests.nix {};
|
unit-tests = pkgs.callPackage ./pkgs/unit-tests.nix {};
|
||||||
} // (pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
|
} // (pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, lib, buildGoModule, path, pkgs, vendorSha256, go }:
|
{ lib, buildGoModule, path, pkgs, vendorHash, go }:
|
||||||
buildGoModule {
|
buildGoModule {
|
||||||
pname = "sops-install-secrets";
|
pname = "sops-install-secrets";
|
||||||
version = "0.0.1";
|
version = "0.0.1";
|
||||||
|
@ -29,7 +29,7 @@ buildGoModule {
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
inherit vendorSha256;
|
inherit vendorHash;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Atomic secret provisioning based on sops";
|
description = "Atomic secret provisioning based on sops";
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{ buildGoModule, vendorSha256 }:
|
{ buildGoModule, vendorHash }:
|
||||||
|
|
||||||
buildGoModule {
|
buildGoModule {
|
||||||
name = "sops-pgp-hook-test";
|
name = "sops-pgp-hook-test";
|
||||||
src = ../.;
|
src = ../.;
|
||||||
inherit vendorSha256;
|
inherit vendorHash;
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
go test -c ./pkgs/sops-pgp-hook
|
go test -c ./pkgs/sops-pgp-hook
|
||||||
install -D sops-pgp-hook.test $out/bin/sops-pgp-hook.test
|
install -D sops-pgp-hook.test $out/bin/sops-pgp-hook.test
|
||||||
|
|
Loading…
Reference in a new issue