Template init tool for devenv inspired by nix flake init
Project description
Devenvcp
Template init tool for devenv inspired by nix flake init to copy your devenv templates so you don't need to use nix flakes for it.
Installation
From Pypi
pip install devenvcp
From nix flake
Add this to your inputs
inputs.devenvcp.url = "git+https://codeberg.org/claymorwan/devnenvcp"
Then install the package like so:
environment.systemPackages = [
inputs.devenvcp.packages.${pkgs.stdenv.hostPlatform.system}.default
];
for home-manager:
home.packages = [
inputs.devenvcp.packages.${pkgs.stdenv.hostPlatform.system}.default
];
You can also directly run
nix run git+https://codeberg.org/claymorwan/devnenvcp -- <args>
Usage
Create a devenvcp.toml file in which you can add your templates like so
[python] # name of template
path = "./python" # relative path your template's directory
aliases = ["py"] # list of string to use as aliases in the cli
Then run the following
devenvcp path/to/dir/containing/config template
# for example
devenvcp ~/.dotfiles/NixOS/dev-shells/devenv python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devenvcp-1.0.0.tar.gz.
File metadata
- Download URL: devenvcp-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28b36eb2a65cd483c1ea81306d3e35cd577ba3c17b8f3eeeffcc20b931e321bd
|
|
| MD5 |
9b67392c2b6587137df1cc9ca9e53b6b
|
|
| BLAKE2b-256 |
552c1ae7bf14f0fd49a3031cff97589baa7dc88f4ed46351af0da97c0d6e4a93
|
File details
Details for the file devenvcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: devenvcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.05","id":"yarara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15675bd4607aac68ba78aa58c020b01ebe0928f82085bef4cf28a46c3820b9f5
|
|
| MD5 |
404eb9b329e5d011e466e759cea5d2e9
|
|
| BLAKE2b-256 |
2778b37894684e7ff25c60ab5b4d109b419ebe9e62210fc3cebd44d393e3dcd3
|