From a7512754f024c9e7e01b236c3ce5355a9179a9cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 15 May 2022 08:07:37 +0200 Subject: [PATCH] fix build for 21.11 --- default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default.nix b/default.nix index 4252a3e..5720b8c 100644 --- a/default.nix +++ b/default.nix @@ -1,7 +1,9 @@ { pkgs ? import {} }: let vendorSha256 = "sha256-nqA2zzCsWXCllpsss0tjjo4ivi3MVuEM3W6dEZc5KAc="; + buildGoModule = if pkgs.lib.versionOlder pkgs.go.version "1.17" then pkgs.buildGo117Module else pkgs.buildGoModule; sops-install-secrets = pkgs.callPackage ./pkgs/sops-install-secrets { + inherit buildGoModule; inherit vendorSha256; }; in rec {