From c34eba07c937aaee8949a3c8e90497716a1bae80 Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Wed, 2 Aug 2023 07:19:29 +1000 Subject: [PATCH] k2tf: reproducible vendor --- pkgs/development/tools/misc/k2tf/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/k2tf/default.nix b/pkgs/development/tools/misc/k2tf/default.nix index e240834f2b4f..9581cc42acff 100644 --- a/pkgs/development/tools/misc/k2tf/default.nix +++ b/pkgs/development/tools/misc/k2tf/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, fetchpatch }: buildGoModule rec { pname = "k2tf"; @@ -11,7 +11,16 @@ buildGoModule rec { sha256 = "sha256-zkkRzCTZCvbwBj4oIhTo5d3PvqLMJPzT3zV9jU3PEJs="; }; - vendorSha256 = "sha256-iCRiBCppqCZrCUQipoVgc4jUnLkX6QVFjxI6sv6n7tU="; + patches = [ + # update dependencies + # https://github.com/sl1pm4t/k2tf/pull/111 + (fetchpatch { + url = "https://github.com/sl1pm4t/k2tf/commit/7e7b778eeb80400cb0dadb1cdea4e617b5738147.patch"; + hash = "sha256-ZGQUuH7u3aNLml6rvOzOxVwSTlbhZLknXbHKeY4lp00="; + }) + ]; + + vendorSha256 = "sha256-yGuoE1bgwVHk3ym382OC93me9HPlVoNgGo/3JROVC2E="; ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=v${version}" ];