]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blame - scripts/nix_infos
Add script to make NUR repo
[perso/Immae/Config/Nix/NUR.git] / scripts / nix_infos
CommitLineData
24fd1fe6
IB
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