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 17:28:22 +00:00
{ buildGoModule
, fetchFromGitHub
, installShellFiles
, lib
}:
buildGoModule rec {
pname = "devbox";
2024-02-07 02:02:41 +00:00
version = "0.9.1";
2022-11-07 17:28:22 +00:00
src = fetchFromGitHub {
owner = "jetpack-io";
repo = pname;
rev = version;
2024-02-07 02:02:41 +00:00
hash = "sha256-3KZWXVwvzy3mZkh6pGZpeQQp2aU4V9TyBcJXU4Au4Rs=";
2022-11-07 17:28:22 +00:00
};
ldflags = [
"-s"
"-w"
2022-12-26 03:58:18 +00:00
"-X go.jetpack.io/devbox/internal/build.Version=${version}"
2022-11-07 17:28:22 +00:00
];
# integration tests want file system access
doCheck = false;
2024-02-03 21:34:12 +00:00
vendorHash = "sha256-8G1JX4vdpDAicx6A9Butl8XTjszlHMbh34pJVQyzEs4=";
2022-11-07 17:28:22 +00: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 18:22:44 +00:00
maintainers = with maintainers; [ urandom lagoja ];
2022-11-07 17:28:22 +00:00
};
}