Comments (2)
The UX around this is not great, but here's how to create multiple shells with plain flakes:
# Assuming flake-utils here to skip setting system
{
packages = {
# The "default" shell
devenv-up = self.devShells.${system}.default.config.procfileScript;
# Another shell. The pattern is: <shellName>-devenv-up
cross-devenv-up = self.devShells.${system}.cross.config.procfileScript;
};
devShells = {
default = devenv.lib.mkShell { ... };
cross = devenv.lib.mkShell { ... };
};
}
If you're using flake-parts
, the devenv-up
packages are created for you.
from devenv.
What does seem broken in both plain flakes and flake-parts is launching processes with devenv up
inside the shell.
For plain flakes, config._module.args.name
is not a thing AFAIKT, so we always fall back to launching the "default"
package.
For flake-parts
, the devenv flake-integration script is not sourced in the shell.
from devenv.
Related Issues (20)
- dotenv integration doesn't support non-root-level .env files HOT 2
- `processes down` doesn't stop processes HOT 2
- Cannot get version without writable directory
- Is there a way to modify pg_hba.conf from within the declaration? HOT 1
- `languages.python.package = pkgs.python310.withPackages (…)` does not work HOT 4
- Exposing haskell (cabal) executables in flake HOT 2
- Matplotlib Support HOT 1
- Rust components not available when rust targets are specified HOT 1
- error: opening lock file '/nix/var/nix/profiles/per-user/<local-user>/profile.lock': No such file or directory HOT 4
- IHP+Flake+Devenv up error opening sockets. HOT 3
- Best way to add sys dependencies of Python libraries? HOT 5
- direnv: Problems with imported nix file changes HOT 1
- Postgres Root User Issue HOT 3
- How to incorporate poetry self commands in an environment HOT 5
- Pyright, mypy not recognize poetry vens during pre-commit hook
- `devenv up` should attach to an existing process-compose server, if one exists HOT 1
- Cannot create shell with custom certificates HOT 3
- cannot import nix file from parent directory? HOT 2
- Difftastic build failed x86_64-darwin HOT 1
- allowUnfree not being imported via devenv.yaml imports HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devenv.