]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blob - scripts/make-env
Patch taskwarrior for truncated descriptions
[perso/Immae/Config/Nix/NUR.git] / scripts / make-env
1 #!/bin/bash
2
3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4
5 eval "$(make --no-print-directory -C $(dirname $DIR) nix-path)"
6 nix-env -r -i -A myEnvironments.immae-eu -f "<nixpkgs>" "$@"
7 result=$?
8
9 cat >> $(dirname $DIR)/versions_log <<EOF
10 Ran $(date) with args "$@" and returned "$result"
11 $(make --no-print-directory -C $(dirname $DIR) nix-info | sed -e "s/^/ /")
12 EOF