aboutsummaryrefslogblamecommitdiff
path: root/scripts/nix_infos
blob: 56e5b19774d75004fb4c19b5ab617a95ce021dc3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                                       
                   




                                                                                   
#!/bin/bash

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

source $DIR/nix_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