diff options
Diffstat (limited to '.env')
-rw-r--r-- | .env/echo-nixNote | 13 | ||||
-rw-r--r-- | .env/local_ | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/.env/echo-nixNote b/.env/echo-nixNote index 6ddfe58..98449bb 100644 --- a/.env/echo-nixNote +++ b/.env/echo-nixNote @@ -13,16 +13,23 @@ echo ' #+BEGIN_SRC sh nix-shell --pure -nix-build -nix build -f default.nix -nix shell -f default.nix +nix build -f default.nix --print-build-logs +nix shell -f default.nix --print-build-logs +nix develop --build -f derivation.nix -I .envrc --print-build-logs + nix-instantiate | nix-build + +nix-instantiate -I .envrc | nix-build -I .envrc nix build `nix-instantiate` +nix build `nix-instantiate -I .envrc` nix develop nix-instantiate | nix show-derivation | jq +nix-instantiate -I .envrc | nix show-derivation -f derivation.nix -I .envrc | jq + nix-instantiate | nix show-derivation --recursive | jq +nix-instantiate -I .envrc | nix show-derivation -f derivation.nix --recursive -I .envrc | jq nix search --json 2>/dev/null |jq #+END_SRC diff --git a/.env/local_ b/.env/local_ index f3036c9..10216c8 100644 --- a/.env/local_ +++ b/.env/local_ @@ -1,3 +1,4 @@ +echo ".envrc called .env/local" export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels/nixos #export NIX_PATH=/nixpkgs-ra/nixpkgs export DFLAGS="-O2 -inline" @@ -23,6 +24,7 @@ export SpineCGIform='spine_search' export SpineSQLdb='spine.search.db' export PROG_VER_GIT="`git describe --long --tags | sed -e 's/^[ a-z_-]\+\([0-9.]\+\)/\1/;s/\([^-]*-g\)/r\1/;s/-/./g'`" export PROG_VER_DECLARED="`cat ./views/version.txt | grep --color=never "enum" | sed 's/.\+(\([0-9]\+\),[ \t]\+\([0-9]\+\),[ \t]\+\([0-9]\+\)[ \t]*).\+/\1.\2.\3/g'`" +direnv allow if [ -e .env/echo-nixNote ]; then source .env/echo-nixNote |