Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub, nix-update-script }: 2 3buildGoModule rec { 4 pname = "ejson2env"; 5 version = "2.0.5"; 6 7 src = fetchFromGitHub { 8 owner = "Shopify"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-HcUmFajbOUZ0T5Th6OA9WBtfTz646qLbXx8NVeJsVng="; 12 }; 13 14 vendorSha256 = "sha256-agWcD8vFNde1SCdkRovMNPf+1KODxV8wW1mXvE0w/CI="; 15 16 ldflags = [ 17 "-s" 18 "-w" 19 "-X main.version=${version}" 20 ]; 21 22 passthru.updateScript = nix-update-script { 23 attrPath = pname; 24 }; 25 26 meta = with lib; { 27 description = "A tool to simplify storing secrets that should be accessible in the shell environment in your git repo."; 28 homepage = "https://github.com/Shopify/ejson2env"; 29 maintainers = with maintainers; [ viraptor ]; 30 license = licenses.mit; 31 }; 32}