nixpkgs/pkgs/development/tools/devbox/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1018 B
Nix
Raw Normal View History

2022-11-07 20:28:22 +03:00
{ buildGoModule
, fetchFromGitHub
, installShellFiles
, lib
}:
buildGoModule rec {
pname = "devbox";
2023-12-25 19:30:07 +03:00
version = "0.8.5";
2022-11-07 20:28:22 +03:00
src = fetchFromGitHub {
owner = "jetpack-io";
repo = pname;
rev = version;
2023-12-25 19:30:07 +03:00
hash = "sha256-Vgke4CTVU5KW7iDyzk6P1ab5nOyICblvJtUQTISc2jg=";
2022-11-07 20:28:22 +03:00
};
ldflags = [
"-s"
"-w"
2022-12-26 06:58:18 +03:00
"-X go.jetpack.io/devbox/internal/build.Version=${version}"
2022-11-07 20:28:22 +03:00
];
# integration tests want file system access
doCheck = false;
2023-12-25 19:30:07 +03:00
vendorHash = "sha256-rP3vktCfmUeZhc0DaU2osVryNabsnaWWyfFYFy7W1pc=";
2022-11-07 20:28:22 +03:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd devbox \
--bash <($out/bin/devbox completion bash) \
--fish <($out/bin/devbox completion fish) \
--zsh <($out/bin/devbox completion zsh)
'';
meta = with lib; {
description = "Instant, easy, predictable shells and containers.";
homepage = "https://www.jetpack.io/devbox";
license = licenses.asl20;
2023-10-27 21:22:44 +03:00
maintainers = with maintainers; [ urandom lagoja ];
2022-11-07 20:28:22 +03:00
};
}