home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit be8c5631ec48ac7fd5faf0f58ecb21773cba5386
parent f8850a55a262d7df645e97b023d9ded56d70acec
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Sun,  5 Aug 2018 17:27:42 +0200

Add channels.nix to refer easily different nixos versions

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Achannels.nix | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/channels.nix b/channels.nix @@ -0,0 +1,22 @@ +let mapAttrs = f: set: builtins.listToAttrs ( +map (attr: { name = attr; value = f set.${attr}; }) +(builtins.attrNames set)); +channels = { + aardvark = "13.10"; + baboon = "14.04"; + caterpillar = "14.12"; + dingo = "15.09"; + emu = "16.03"; + flounder = "16.09"; + gorilla = "17.03"; + v17_03 = "17.03"; + hummingbird = "17.09"; + v17_09 = "17.09"; + impala = "18.03"; + v18_03 = "18.03"; + unstable = "unstable"; +}; +in mapAttrs (v: + import (builtins.fetchTarball + "https://nixos.org/channels/nixos-${v}/nixexprs.tar.xz") {}) + channels