summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2024-05-08 21:50:41 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2024-05-08 21:50:41 -0400
commit595ee0a46d510a7152766b7c70fa1c700908ad4e (patch)
tree72f7726a9bcb1c286f222e5c96eb634e0e22b2c2
parentset nixVersions.nix_2_21 (diff)
nix minor housekeeping
-rw-r--r--.envrc-nix15
-rw-r--r--flake.lock6
-rw-r--r--org/dlang-nix-flakes.org21
-rwxr-xr-xshell.nix4
4 files changed, 12 insertions, 34 deletions
diff --git a/.envrc-nix b/.envrc-nix
index f91e3f5..0da58f8 100644
--- a/.envrc-nix
+++ b/.envrc-nix
@@ -19,18 +19,3 @@ echo ""
PATH_add result/bin
use flake .
#use flake .#default
-echo '
-- consider running:
- ❯❯ nix flake show
- ❯❯ nix flake update && nix flake check && nix flake show
- ❯❯ nix flake update && nix flake check --show-trace && nix flake show && nix develop ".#devShell" -c $SHELL
-
-- for a dev shell:
- ❯❯ nix develop
- ❯❯ nix develop -c $SHELL
- ❯❯ nix develop ".#dsh-overlay-ldc" --print-build-logs
-
-- to build project:
- ❯❯ nix build --print-build-logs
- ❯❯ nix build ".#" --print-build-logs
-'
diff --git a/flake.lock b/flake.lock
index ace26c4..c26d95c 100644
--- a/flake.lock
+++ b/flake.lock
@@ -20,11 +20,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1714594348,
- "narHash": "sha256-fL6twwN/npU94mvumU5ho/uhM/fwePCRQ9lwamm2lds=",
+ "lastModified": 1715037484,
+ "narHash": "sha256-OUt8xQFmBU96Hmm4T9tOWTu4oCswCzoVl+pxSq/kiFc=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "1c74cc292b61614e74c1cf0d372f79d57fb4936b",
+ "rev": "ad7efee13e0d216bf29992311536fce1d3eefbef",
"type": "github"
},
"original": {
diff --git a/org/dlang-nix-flakes.org b/org/dlang-nix-flakes.org
index f7af27b..b64fdb0 100644
--- a/org/dlang-nix-flakes.org
+++ b/org/dlang-nix-flakes.org
@@ -325,21 +325,6 @@ echo ""
PATH_add result/bin
use flake .
#use flake .#default
-echo '
-- consider running:
- ❯❯ nix flake show
- ❯❯ nix flake update && nix flake check && nix flake show
- ❯❯ nix flake update && nix flake check --show-trace && nix flake show && nix develop ".#devShell" -c $SHELL
-
-- for a dev shell:
- ❯❯ nix develop
- ❯❯ nix develop -c $SHELL
- ❯❯ nix develop ".#dsh-overlay-ldc" --print-build-logs
-
-- to build project:
- ❯❯ nix build --print-build-logs
- ❯❯ nix build ".#" --print-build-logs
-'
#+END_SRC
*** 3.0.4
@@ -570,7 +555,7 @@ direnv fetchurl https://raw.githubusercontent.com/nix-community/nix-direnv/${Nix
}
#+END_SRC
-** shell.nix
+*** shell.nix
#+HEADER: :tangle "../shell.nix"
#+HEADER: :tangle-mode (identity #o755)
@@ -617,6 +602,10 @@ with pkgs-nix;
#gtkd
];
shellHook = ''
+ #echo '
+ # shell.nix echo ❯❯
+ # ❯❯ nix flake update && nix flake check --show-trace && nix flake show && nix develop ".#devShell" -c $SHELL
+ #'
'';
}
#+END_SRC
diff --git a/shell.nix b/shell.nix
index 91e0840..50575eb 100755
--- a/shell.nix
+++ b/shell.nix
@@ -40,5 +40,9 @@ with pkgs-nix;
#gtkd
];
shellHook = ''
+ #echo '
+ # shell.nix echo ❯❯
+ # ❯❯ nix flake update && nix flake check --show-trace && nix flake show && nix develop ".#devShell" -c $SHELL
+ #'
'';
}