Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 35 lines 818 B view raw
1{ stdenv, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "gomplate"; 5 version = "3.8.0"; 6 owner = "hairyhenderson"; 7 rev = "v${version}"; 8 9 src = fetchFromGitHub { 10 inherit owner rev; 11 repo = pname; 12 sha256 = "058shbrhpd8ghdj5qa6n7mf1bh8qvpmiv3yjj39jys359zhin06n"; 13 }; 14 15 vendorSha256 = "0wqz3anxlzb0ds6xmpnaxq5rjgcmzkzrdqhnkfkjq32b7mj9mks3"; 16 17 # some tests require network access 18 postPatch = '' 19 rm net/net_test.go 20 ''; 21 22 buildFlagsArray = [ 23 "-ldflags=" 24 "-s" 25 "-w" 26 "-X github.com/${owner}/${pname}/v3/version.Version=${rev}" 27 ]; 28 29 meta = with stdenv.lib; { 30 description = "A flexible commandline tool for template rendering"; 31 homepage = "https://gomplate.ca/"; 32 maintainers = with maintainers; [ ris jlesquembre ]; 33 license = licenses.mit; 34 }; 35}