Comments (2)
Example:
{
description = "virtual environments";
inputs.devshell.url = "github:numtide/devshell";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.dsf.url = "github:cruel-intentions/devshell-files";
inputs.gha.url = "github:cruel-intentions/gh-actions";
outputs = { self, flake-utils, devshell, nixpkgs, dsf, gha }:
flake-utils.lib.eachDefaultSystem (system: {
devShell = let pkgs = import nixpkgs { inherit system; overlays = [ devshell.overlay ]; }; in
pkgs.devshell.mkShell {
imports = [
"${dsf}/modules/files.nix" # create text files for you
"${dsf}/modules/yaml.nix" # use files to write yaml files from nix
"${gha}/gha/gh-actions.nix" # use yaml to create .github/workflows/gh-pages.yaml
# ... :-)
(pkgs.devshell.importTOML ./devshell.toml)
];
};
});
}
There is an external lib that help
{
description = "Dev Environment";
inputs.nixpkgs.url = "github:nixos/nixpkgs/22.05";
inputs.dsf.url = "github:cruel-intentions/devshell-files";
inputs.dsf.inputs.nixpkgs.follows = "nixpkgs";
inputs.gha.url = "github:cruel-intentions/gh-actions";
outputs = inputs: inputs.dsf.lib.shell inputs [
"hello" # import nix package
"${inputs.gha}/gh-actions.nix"
./project.nix # import nix module
(inputs.dsf.lib.importTOML ./devshell.toml)
];
}
See also #153
from devshell.
Looking at old issues, there is also #136
from devshell.
Related Issues (20)
- Play with `starship` HOT 1
- zsh autocompletion not being loaded
- Proposal to introduce plugins HOT 6
- Using a custom Node.js version HOT 2
- Simplify assigning categories to packages HOT 2
- Allow specifying commands as packages without the attrset HOT 1
- `env` has a weird format, should be an attrset HOT 8
- `env`: Consider adding `separator` option for `prefix` env vars HOT 1
- `pre-commit hooks are disabled.` printed when entering a dev shell
- Error when configuring devshell in nix HOT 1
- `ld -v` doesn't see `language.c.libraries`
- `'` in foldername of a project breaks devshell
- Skipping Python package tests?
- Expose `flakeModule` from flake for use with `flake-parts` HOT 5
- Track upstream evolution of `nix develop`
- `language.c.includes` collision when trying to use libX11 and xorgproto
- Add comparison chart to documentation covering similar projects HOT 4
- basic devshell with clang: `error: The option 'language.c.__ignoreNulls' does not exist`
- Incorrect quoting for LD_LIBRARY_PATH, C_INCLUDE_PATH, PKG_CONFIG_PATH when using extras/language/c.nix (possibly others as well) 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 devshell.