about summary refs log tree commit diff
path: root/bin/install-all
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-06-17 22:04:55 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-06-17 22:04:55 +0200
commitb277aaa96a869ff5858662b61b14dc2b4f5a875a (patch)
treee49929e6ec78cdc4e64f345f801fb5bca52801a1 /bin/install-all
parentacbf0f1ea9530bd8fb292e54238592488ba3c816 (diff)
downloadspiewnik-b277aaa96a869ff5858662b61b14dc2b4f5a875a.tar.gz
spiewnik-b277aaa96a869ff5858662b61b14dc2b4f5a875a.zip
nix
Diffstat (limited to 'bin/install-all')
-rwxr-xr-xbin/install-all12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/install-all b/bin/install-all
new file mode 100755
index 0000000..13d9c74
--- /dev/null
+++ b/bin/install-all
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ ! -f nix-portable ]; then
+  curl -LO https://github.com/DavHau/nix-portable/releases/download/v008/nix-portable
+  chmod +x nix-portable
+
+  ./nix-portable nix-channel --add https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-21.05-small.tar.gz nixos
+  ./nix-portable nix-channel --update
+  ./nix-portable nix-shell -p cachix --run "cachix use pn"
+fi
+
+NP_MINIMAL=1 ./nix-portable nix-shell