summaryrefslogtreecommitdiff
path: root/scripts/make-env
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-12-13 21:25:24 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-24 01:40:13 +0200
commit252dd7d899b7a0deea1537cc5d2d48b825afffb0 (patch)
treef51c3c9cd7429b0b9553a840f26bee489be045bc /scripts/make-env
downloadNUR-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-xscripts/make-env11
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
3DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4
5source $(dirname $DIR)/nix_path_env
6nix-env -r -i -A myEnvironments.immae-eu -f "<nixpkgs>" "$@"
7
8cat >> $(dirname $DIR)/versions_log <<EOF
9# Ran $(date) with args "$@"
10$($DIR/nix_infos | sed -e "s/^/# /")
11EOF