forked from mirrors/nixpkgs
Merge pull request #200067 from urandom2/devbox
Fixes https://github.com/NixOS/nixpkgs/issues/196717
This commit is contained in:
commit
acfcc3c93a
43
pkgs/development/tools/devbox/default.nix
Normal file
43
pkgs/development/tools/devbox/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, lib
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "devbox";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jetpack-io";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-TxHfgi3/Q4aa5of29OGTs1Qy5PPIK4Gcwd11KJ70NIc=";
|
||||
};
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X go.jetpack.io/devbox/build.Version=${version}"
|
||||
];
|
||||
|
||||
# integration tests want file system access
|
||||
doCheck = false;
|
||||
|
||||
vendorHash = "sha256-XeoQI5Rel0qP9cjguPqne7pfNdQJKN+uHRZGnrIGtHk=";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -16731,6 +16731,8 @@ with pkgs;
|
|||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
devbox = callPackage ../development/tools/devbox { };
|
||||
|
||||
libcxx = llvmPackages.libcxx;
|
||||
libcxxabi = llvmPackages.libcxxabi;
|
||||
|
||||
|
|
Loading…
Reference in a new issue