aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make-env5
-rwxr-xr-xscripts/nix_infos10
2 files changed, 15 insertions, 0 deletions
diff --git a/scripts/make-env b/scripts/make-env
index fc52adc..ebb1eed 100755
--- a/scripts/make-env
+++ b/scripts/make-env
@@ -4,3 +4,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4 4
5source $(dirname $DIR)/nix_path_env 5source $(dirname $DIR)/nix_path_env
6nix-env -r -i -A myEnvironments.immae-eu -f "<nixpkgs>" "$@" 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
diff --git a/scripts/nix_infos b/scripts/nix_infos
new file mode 100755
index 0000000..f824305
--- /dev/null
+++ b/scripts/nix_infos
@@ -0,0 +1,10 @@
1#!/bin/bash
2
3DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4
5source $(dirname $DIR)/nix_path_env
6version=$(nix eval --raw nixpkgs.lib.version)
7mainversion=$(echo $version | cut -d"." -f -2)
8
9echo "https://releases.nixos.org/nixos/$mainversion/nixos-$version/nixexprs.tar.xz"
10nix eval --raw nixpkgs.bc.meta.position | cut -d"/" -f-4