about summary refs log tree commit diff
path: root/scripts/nix-profile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nix-profile.sh')
-rw-r--r--scripts/nix-profile.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/nix-profile.sh b/scripts/nix-profile.sh
new file mode 100644
index 000000000000..977210165bda
--- /dev/null
+++ b/scripts/nix-profile.sh
@@ -0,0 +1,15 @@
+if test -z "$NIX_SET"; then
+
+    export NIX_SET=1
+
+    NIX_LINKS=/nix/var/nix/links/current
+
+    export PATH=$NIX_LINKS/bin:/nix/bin:$PATH
+
+    export LD_LIBRARY_PATH=$NIX_LINKS/lib:$LD_LIBRARY_PATH
+
+    export LIBRARY_PATH=$NIX_LINKS/lib:$LIBRARY_PATH
+
+    export C_INCLUDE_PATH=$NIX_LINKS/include:$C_INCLUDE_PATH
+
+fi
\ No newline at end of file