mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
44 lines
1011 B
Nix
44 lines
1011 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, lib
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "devbox";
|
|
version = "0.5.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jetpack-io";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-PR3JRA2Dme/KbU59QV0G3VzmTByynnDL9y33wHsX3PI=";
|
|
};
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X go.jetpack.io/devbox/internal/build.Version=${version}"
|
|
];
|
|
|
|
# integration tests want file system access
|
|
doCheck = false;
|
|
|
|
vendorHash = "sha256-UEMFHRP9XKxg1wa3JYJ522yuyrPTDhyVCdQdSpDi6Cg=";
|
|
|
|
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 ];
|
|
};
|
|
}
|