diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-12-13 21:25:24 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-24 01:40:13 +0200 |
commit | 252dd7d899b7a0deea1537cc5d2d48b825afffb0 (patch) | |
tree | f51c3c9cd7429b0b9553a840f26bee489be045bc /scripts/make-env | |
download | NUR-nur_root.tar.gz NUR-nur_root.tar.zst NUR-nur_root.zip |
Initial commit published for NURnur_root
Diffstat (limited to 'scripts/make-env')
-rwxr-xr-x | scripts/make-env | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/make-env b/scripts/make-env new file mode 100755 index 00000000..ebb1eed2 --- /dev/null +++ b/scripts/make-env | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
4 | |||
5 | source $(dirname $DIR)/nix_path_env | ||
6 | nix-env -r -i -A myEnvironments.immae-eu -f "<nixpkgs>" "$@" | ||
7 | |||
8 | cat >> $(dirname $DIR)/versions_log <<EOF | ||
9 | # Ran $(date) with args "$@" | ||
10 | $($DIR/nix_infos | sed -e "s/^/# /") | ||
11 | EOF | ||