aboutsummaryrefslogtreecommitdiff
path: root/scripts/nix_infos
blob: f824305ebdb305265ce18704a9fa756a96ee8b63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

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

source $(dirname $DIR)/nix_path_env
version=$(nix eval --raw nixpkgs.lib.version)
mainversion=$(echo $version | cut -d"." -f -2)

echo "https://releases.nixos.org/nixos/$mainversion/nixos-$version/nixexprs.tar.xz"
nix eval --raw nixpkgs.bc.meta.position | cut -d"/" -f-4