Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "hologram";
5 version = "1.3";
6
7 src = fetchFromGitHub {
8 owner = "AdRoll";
9 repo = "hologram";
10 rev = version;
11 hash = "sha256-b65mplfDuwk8lEfJLKBY7BF0yGRksxHjwbEW6A7moo4=";
12 };
13
14 postPatch = ''
15 sed -i 's|cacheTimeout != 3600|cacheTimeout != 0|' cmd/hologram-server/main.go
16
17 rm -f agent/metadata_service_test.go server/persistent_ldap_test.go server/server_test.go
18 '';
19
20 vendorHash = "sha256-HI5+02qSQVLy6ZKaFjy1bWtvVk5bqMBg1umu2ic5HuY=";
21
22 ldflags = [ "-s" "-w" ];
23
24 meta = with lib; {
25 homepage = "https://github.com/AdRoll/hologram/";
26 description = "Easy, painless AWS credentials on developer laptops";
27 maintainers = with maintainers; [ aaronjheng ];
28 license = licenses.asl20;
29 };
30}