Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 32 lines 636 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "json2hcl"; 9 version = "0.2.0"; 10 11 src = fetchFromGitHub { 12 owner = "kvz"; 13 repo = "json2hcl"; 14 rev = "v${version}"; 15 sha256 = "sha256-h7DudYVWvDRCbjoIgOoCIudf7ZfUfWXp5OJ4ni0nm6c="; 16 }; 17 18 vendorHash = "sha256-GxYuFak+5CJyHgC1/RsS0ub84bgmgL+bI4YKFTb+vIY="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 ]; 24 25 meta = with lib; { 26 description = "Convert JSON to HCL, and vice versa"; 27 mainProgram = "json2hcl"; 28 homepage = "https://github.com/kvz/json2hcl"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ matthewbauer ]; 31 }; 32}