13 src = fetchFromGitHub {
17 hash = "sha256-zmWfOLBb+GWw9v6LdCC7/WaP1Wz7UipPwqkmI1+rG8Q=";
21 # Fix vulnerable dependencies
22 # Backport of https://github.com/benchkram/bob/pull/387
24 url = "https://github.com/benchkram/bob/commit/5020e6fafbfbcb1b3add5d936886423ce882793d.patch";
25 hash = "sha256-if1ZErI0Un7d26eOkYSkEa87+VTRcEtF6JbsJYOHpHE=";
29 ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
31 vendorHash = "sha256-u0nFaTQWU9O7A/RAhGaLcBka+YNGjSlpycDF8TLQALw=";
33 excludedPackages = [ "example/server-db" "test/e2e" "tui-example" ];
35 nativeBuildInputs = [ installShellFiles ];
37 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
38 installShellCompletion --cmd bob \
39 --bash <($out/bin/bob completion) \
40 --zsh <($out/bin/bob completion -z)
43 # tests require network access
47 description = "Build system for microservices";
49 homepage = "https://bob.build";
50 license = licenses.asl20;
51 maintainers = with maintainers; [ zuzuleinen ];