aboutsummaryrefslogtreecommitdiffhomepage
path: root/nixEnv
diff options
context:
space:
mode:
Diffstat (limited to 'nixEnv')
-rwxr-xr-x[-rw-r--r--]nixEnv/shells/shell-dmd-verNix.nix1
-rwxr-xr-x[-rw-r--r--]nixEnv/shells/shell-dmd-verUser.nix1
-rwxr-xr-x[-rw-r--r--]nixEnv/shells/shell-ldc-verNix.nix11
-rwxr-xr-x[-rw-r--r--]nixEnv/shells/shell-ldc-verUser.nix11
4 files changed, 20 insertions, 4 deletions
diff --git a/nixEnv/shells/shell-dmd-verNix.nix b/nixEnv/shells/shell-dmd-verNix.nix
index 7f16efe..cac08f4 100644..100755
--- a/nixEnv/shells/shell-dmd-verNix.nix
+++ b/nixEnv/shells/shell-dmd-verNix.nix
@@ -1,3 +1,4 @@
+#!/usr/bin/env -S nix-shell
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
diff --git a/nixEnv/shells/shell-dmd-verUser.nix b/nixEnv/shells/shell-dmd-verUser.nix
index 334aece..4e40c0b 100644..100755
--- a/nixEnv/shells/shell-dmd-verUser.nix
+++ b/nixEnv/shells/shell-dmd-verUser.nix
@@ -1,3 +1,4 @@
+#!/usr/bin/env -S nix-shell
{ pkgs ? import <nixpkgs>
{ overlays = [ ]; }
}:
diff --git a/nixEnv/shells/shell-ldc-verNix.nix b/nixEnv/shells/shell-ldc-verNix.nix
index 0a6aa9a..748f553 100644..100755
--- a/nixEnv/shells/shell-ldc-verNix.nix
+++ b/nixEnv/shells/shell-ldc-verNix.nix
@@ -1,5 +1,12 @@
+#!/usr/bin/env -S nix-shell
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
- buildInputs = with pkgs;
- [ (import ./packages-ldc.nix { inherit pkgs; }) ];
+ buildInputs = with pkgs; [
+ (import ./packages-ldc.nix { inherit pkgs; })
+ ];
+ shellHook = ''
+ # nix-build
+ ## nix-build -I nixpkgs=<provide local nix path>
+ ## nix-build -I nixpkgs=/nixpkgs-ra/nixpkgs
+ '';
}
diff --git a/nixEnv/shells/shell-ldc-verUser.nix b/nixEnv/shells/shell-ldc-verUser.nix
index 1c9c092..d7f3267 100644..100755
--- a/nixEnv/shells/shell-ldc-verUser.nix
+++ b/nixEnv/shells/shell-ldc-verUser.nix
@@ -1,7 +1,14 @@
+#!/usr/bin/env -S nix-shell
{ pkgs ? import <nixpkgs> {
overlays = [ (import ../overlays/ldcVersion.nix) ];
} }:
pkgs.mkShell {
- buildInputs = with pkgs;
- [ (import ./packages-ldc.nix { inherit pkgs; }) ];
+ buildInputs = with pkgs; [
+ (import ./packages-ldc.nix { inherit pkgs; })
+ ];
+ shellHook = ''
+ # nix-build
+ ## nix-build -I nixpkgs=<provide local nix path>
+ ## nix-build -I nixpkgs=/nixpkgs-ra/nixpkgs
+ '';
}