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
1011 B
Nix
Raw Normal View History

2022-11-07 17:28:22 +00:00
{ buildGoModule
, fetchFromGitHub
, installShellFiles
, lib
}:
buildGoModule rec {
pname = "devbox";
2023-01-28 22:22:52 +00:00
version = "0.2.3";
2022-11-07 17:28:22 +00:00
src = fetchFromGitHub {
owner = "jetpack-io";
repo = pname;
rev = version;
2023-01-28 22:22:52 +00:00
hash = "sha256-AvLTDuODn0tcG13lJ9MiN8DgnKzdIzZL1eLnFuEleRw=";
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;
2023-01-28 22:22:52 +00:00
vendorHash = "sha256-IJay/CDWq9/6P4+qbNleUp4rzTas0LW9zbsV9QN+ufI=";
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;
maintainers = with maintainers; [ urandom ];
};
}