You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are certain nixpkgs that require configuration using withExtensions and withPackages. Currently, the only way to utilize those packages in that way using DevBox is to create a flake, which feels antithetical to DevBox's proposition of abstracting Nix.
Example, for using the azure-cli with azure-cli-extensions:
{description="A flake to install azure-cli";inputs={nixpkgs.url="github:NixOS/nixpkgs/nixos-unstable";flake-utils.url="github:numtide/flake-utils";};outputs={self,nixpkgs,flake-utils,}:
flake-utils.lib.eachDefaultSystem(system:
letpkgs=nixpkgs.legacyPackages.${system};in{formatter=pkgs.nixfmt;packages={default=pkgs.azure-cli.withExtensions[pkgs.azure-cli-extensions.terraform];};});}
Additionally, also including cli functionality to be able to add these to devbox.json, ex: devbox add azure-cli --with-extensions azure-cli-extensions.terraform .
Alternatives you've considered
No response
The text was updated successfully, but these errors were encountered:
What problem are you trying to solve?
There are certain
nixpkgs
that require configuration usingwithExtensions
andwithPackages
. Currently, the only way to utilize those packages in that way using DevBox is to create a flake, which feels antithetical to DevBox's proposition of abstracting Nix.Example, for using the
azure-cli
withazure-cli-extensions
:What solution would you like?
Allow for
withExtensions
andwithPackages
, possibly alsooverride
, to be definable indevbox.json
:Additionally, also including cli functionality to be able to add these to
devbox.json
, ex:devbox add azure-cli --with-extensions azure-cli-extensions.terraform
.Alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: