summaryrefslogtreecommitdiff
path: root/scripts/make-env
blob: 25aa869a210453a83699c3ceb4e523e2bc01a09d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

eval "$(make --no-print-directory -C $(dirname $DIR) nix-path)"
nix-env -r -i -A myEnvironments.immae-eu -f "<nixpkgs>" "$@"
result=$?

cat >> $(dirname $DIR)/versions_log <<EOF
Ran $(date) with args "$@" and returned "$result"
$(make --no-print-directory -C $(dirname $DIR) nix-info | sed -e "s/^/    /")
EOF