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