diff options
Diffstat (limited to 'scripts/nix_infos')
-rwxr-xr-x | scripts/nix_infos | 10 |
1 files changed, 10 insertions, 0 deletions
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 | |||
3 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
4 | |||
5 | source $(dirname $DIR)/nix_path_env | ||
6 | version=$(nix eval --raw nixpkgs.lib.version) | ||
7 | mainversion=$(echo $version | cut -d"." -f -2) | ||
8 | |||
9 | echo "https://releases.nixos.org/nixos/$mainversion/nixos-$version/nixexprs.tar.xz" | ||
10 | nix eval --raw nixpkgs.bc.meta.position | cut -d"/" -f-4 | ||