diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2024-05-07 10:11:24 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2024-05-07 10:21:42 -0400 |
commit | 0a1a8ce68c7b27cc4e86e9fab71a99e311d9e7d0 (patch) | |
tree | b5ec034ef6f93826be263302460c36f205537ac9 /.envrc-nix | |
parent | arsd.core.d import (diff) |
configuration a& build related
Diffstat (limited to '.envrc-nix')
-rw-r--r-- | .envrc-nix | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -20,20 +20,36 @@ echo ' ❯❯ nix flake show ❯❯ nix flake update && nix flake check && nix flake show -- for a dev shell: +- for a dev shell (development environment): ❯❯ nix develop ❯❯ nix develop ".#" --print-build-logs -c zsh + ❯❯ nix develop ".#dsh-nixpkgs-dmd-dub" --print-build-logs -c zsh + ❯❯ nix develop ".#dsh-overlay-dmd-dub" --print-build-logs -c zsh + ❯❯ nix develop ".#dsh-nixpkgs-ldc-dub" --print-build-logs -c zsh + ❯❯ nix develop ".#dsh-overlay-ldc-dub" --print-build-logs -c zsh - to build project: ❯❯ nix build --print-build-logs ❯❯ nix build ".#" --print-build-logs + +- to build project (for build dependencies select appropriate dev env & build): + ❯❯ nix build ".#spine-search-nixpkgs-dmd" --print-build-logs ❯❯ nix build ".#spine-search-overlay-dmd" --print-build-logs + ❯❯ nix build ".#spine-search-nixpkgs-ldc" --print-build-logs ❯❯ nix build ".#spine-search-overlay-ldc" --print-build-logs - - (see nix other/additional build options): - ❯❯ nix flake show - ❯❯ nix flake update && nix flake check --show-trace && nix flake show && nix develop ".#devShell" -c zsh - ❯❯ dub build --compiler=ldmd --build=release --combined --skip-registry=all +- to build using dub on nix (get dependencies by setting your development environment): + + ❯❯ nix develop ".#dsh-nixpkgs-dmd-dub" --print-build-logs -c zsh + ❯❯ dub run --compiler=dmd --config=dmd --combined --skip-registry=all + + ❯❯ nix develop ".#dsh-nixpkgs-ldc-dub" --print-build-logs -c zsh + ❯❯ dub run --compiler=ldmd2 --config=ldmd2 --combined --skip-registry=all + +- for develop environment & build options + ❯❯ nix flake show + ❯❯ nix flake update && nix flake check && nix flake show + ' |