From 842e54b0678e180bd76b4095a92aafeb507df1e6 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sat, 16 Apr 2022 01:41:41 +0000 Subject: [PATCH] hologram: unstable-2018-03-19 -> 1.2.1 --- pkgs/tools/security/hologram/default.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/security/hologram/default.nix b/pkgs/tools/security/hologram/default.nix index ebb88437826..8f5e48ee37e 100644 --- a/pkgs/tools/security/hologram/default.nix +++ b/pkgs/tools/security/hologram/default.nix @@ -1,22 +1,26 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub }: -buildGoPackage rec { +buildGoModule rec { pname = "hologram"; - version = "unstable-2018-03-19"; + version = "1.2.1"; src = fetchFromGitHub { owner = "AdRoll"; repo = "hologram"; - rev = "a7bab58642b530edb75b9cf6c1d834c85822ceac"; - sha256 = "00scryz8js6gbw8lp2y23qikbazz2dd992r97rqh0l1q4baa0ckn"; + rev = version; + sha256 = "sha256-rdV/oVo+M5ALyU3a3XlA4kt+TLg0Rnr7/qDyZ9iuIb4="; }; - goPackagePath = "github.com/AdRoll/hologram"; - - preConfigure = '' + postPatch = '' sed -i 's|cacheTimeout != 3600|cacheTimeout != 0|' cmd/hologram-server/main.go + + rm -f agent/metadata_service_test.go server/persistent_ldap_test.go server/server_test.go ''; + vendorSha256 = "sha256-pEYMpBiNbq5eSDiFT+9gMjGHDeTzWIej802Zz6Xtays="; + + ldflags = [ "-s" "-w" ]; + meta = with lib; { homepage = "https://github.com/AdRoll/hologram/"; description = "Easy, painless AWS credentials on developer laptops";