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
1,011 B
Nix
Raw Normal View History

2022-11-07 18:28:22 +01:00
{ buildGoModule
, fetchFromGitHub
, installShellFiles
, lib
}:
buildGoModule rec {
pname = "devbox";
2023-04-27 07:53:18 +02:00
version = "0.4.8";
2022-11-07 18:28:22 +01:00
src = fetchFromGitHub {
owner = "jetpack-io";
repo = pname;
rev = version;
2023-04-27 07:53:18 +02:00
hash = "sha256-Xs7xd2U00AnYlXZv1PYHaSIYhDg+GpCHAtT2xis61vM=";
2022-11-07 18:28:22 +01:00
};
ldflags = [
"-s"
"-w"
2022-12-26 04:58:18 +01:00
"-X go.jetpack.io/devbox/internal/build.Version=${version}"
2022-11-07 18:28:22 +01:00
];
# integration tests want file system access
doCheck = false;
2023-04-27 07:53:18 +02:00
vendorHash = "sha256-Ct1hftgMYAF8DPdnYTB1QQYD0HGC4wifIbMX+TrgDdk=";
2022-11-07 18:28:22 +01: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;
maintainers = with maintainers; [ urandom ];
};
}