summaryrefslogtreecommitdiffhomepage
path: root/org/config_env.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2024-05-07 10:11:24 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2024-05-07 10:21:42 -0400
commit0a1a8ce68c7b27cc4e86e9fab71a99e311d9e7d0 (patch)
treeb5ec034ef6f93826be263302460c36f205537ac9 /org/config_env.org
parentarsd.core.d import (diff)
configuration a& build related
Diffstat (limited to 'org/config_env.org')
-rw-r--r--org/config_env.org31
1 files changed, 24 insertions, 7 deletions
diff --git a/org/config_env.org b/org/config_env.org
index 6f1c1c7..dab1d81 100644
--- a/org/config_env.org
+++ b/org/config_env.org
@@ -76,22 +76,38 @@ 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
+
'
#+END_SRC
@@ -164,9 +180,10 @@ fi
#+HEADER: :tangle ../.envrc-local
#+HEADER: :noweb yes
#+BEGIN_SRC sh
-export DFLAGS="-O2 -inline -boundscheck=on -color=on"
export SpineVER=$(git describe --long --tags | sed 's/^[ a-z_-]\+\([0-9.]\+\)/\1/;s/\([^-]*-g\)/r\1/;s/-/./g')
export SpineSearchBIN=result/share/cgi-bin
-export SpineCGIbin=/var/www/cgi/cgi-bin
+# ❯❯ cgi search form name:
export SpineCGIform='spine_search'
+# ❯❯ configuration cgi search form path:
+export SpineCGIbin=/var/www/cgi/cgi-bin
#+END_SRC