2024-05-19 20:16:10 +05:30
|
|
|
{ pkgs, lib, config, inputs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# https://devenv.sh/basics/
|
|
|
|
env.GREET = "devenv";
|
|
|
|
|
|
|
|
dotenv.enable = true;
|
|
|
|
|
|
|
|
languages.rust.enable = true;
|
|
|
|
# https://devenv.sh/reference/options/#languagesrustchannel
|
|
|
|
languages.rust.channel = "nightly";
|
|
|
|
|
|
|
|
# https://devenv.sh/packages/
|
2024-05-19 22:09:20 +05:30
|
|
|
packages = [
|
|
|
|
pkgs.git
|
|
|
|
pkgs.gnumake
|
|
|
|
pkgs.rustup
|
|
|
|
pkgs.sqlx-cli
|
|
|
|
pkgs.podman
|
|
|
|
pkgs.podman-compose
|
|
|
|
pkgs.openssl
|
|
|
|
pkgs.direnv
|
|
|
|
];
|
2024-05-19 20:16:10 +05:30
|
|
|
|
|
|
|
# https://devenv.sh/scripts/
|
|
|
|
scripts.hello.exec = "echo hello from $GREET";
|
|
|
|
|
|
|
|
enterShell = ''
|
|
|
|
hello
|
|
|
|
git --version
|
|
|
|
'';
|
|
|
|
|
|
|
|
# https://devenv.sh/tests/
|
|
|
|
enterTest = ''
|
|
|
|
echo "Running tests"
|
|
|
|
git --version | grep "2.42.0"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# https://devenv.sh/services/
|
|
|
|
# services.postgres.enable = true;
|
|
|
|
|
|
|
|
# https://devenv.sh/languages/
|
|
|
|
# languages.nix.enable = true;
|
|
|
|
|
|
|
|
# https://devenv.sh/pre-commit-hooks/
|
|
|
|
# pre-commit.hooks.shellcheck.enable = true;
|
|
|
|
|
|
|
|
# https://devenv.sh/processes/
|
|
|
|
# processes.ping.exec = "ping example.com";
|
|
|
|
|
|
|
|
# See full reference at https://devenv.sh/reference/options/
|
|
|
|
}
|