diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-06-17 22:04:55 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-06-17 22:04:55 +0200 |
commit | b277aaa96a869ff5858662b61b14dc2b4f5a875a (patch) | |
tree | e49929e6ec78cdc4e64f345f801fb5bca52801a1 /bin | |
parent | acbf0f1ea9530bd8fb292e54238592488ba3c816 (diff) | |
download | spiewnik-b277aaa96a869ff5858662b61b14dc2b4f5a875a.tar.gz spiewnik-b277aaa96a869ff5858662b61b14dc2b4f5a875a.zip |
nix
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/install-all | 12 | ||||
-rwxr-xr-x | bin/redo | 2 |
2 files changed, 14 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 diff --git a/bin/redo b/bin/redo index 0c76a18..708a9b2 100755 --- a/bin/redo +++ b/bin/redo @@ -12,6 +12,8 @@ # Overflow oder eine Format String Vulnerability zwischen die anderen # Codezeilen und schreibe das auch nicht dran. +export PATH="$(dirname $(readlink -f $0)):$PATH" + : \ "${REDO_JOBS_MAX:=1}" \ "${REDO_MKDIR:=$(command -v mkdir)}" \ |