Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildGoModule 2, fetchFromGitHub 3, installShellFiles 4, lib 5}: 6buildGoModule rec { 7 pname = "devbox"; 8 version = "0.5.2"; 9 10 src = fetchFromGitHub { 11 owner = "jetpack-io"; 12 repo = pname; 13 rev = version; 14 hash = "sha256-fC/cUtuXTxjDv35gJXN7meq/uRFH3nsVULxmOJe8WwY="; 15 }; 16 17 ldflags = [ 18 "-s" 19 "-w" 20 "-X go.jetpack.io/devbox/internal/build.Version=${version}" 21 ]; 22 23 # integration tests want file system access 24 doCheck = false; 25 26 vendorHash = "sha256-Ct1hftgMYAF8DPdnYTB1QQYD0HGC4wifIbMX+TrgDdk="; 27 28 nativeBuildInputs = [ installShellFiles ]; 29 30 postInstall = '' 31 installShellCompletion --cmd devbox \ 32 --bash <($out/bin/devbox completion bash) \ 33 --fish <($out/bin/devbox completion fish) \ 34 --zsh <($out/bin/devbox completion zsh) 35 ''; 36 37 meta = with lib; { 38 description = "Instant, easy, predictable shells and containers."; 39 homepage = "https://www.jetpack.io/devbox"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ urandom ]; 42 }; 43}