nix: handle ref/rev correctly for channel fetch

This commit is contained in:
steveej 2019-01-06 02:05:48 +01:00
parent 97abdf17e0
commit cf657e16ff
5 changed files with 29 additions and 5 deletions

View file

@ -10,7 +10,8 @@
url = "https://github.com/NixOS/nixpkgs-channels/";
# Commit hash for nixos-unstable as of 2018-09-12
# `git ls-remote https://github.com/nixos/nixpkgs-channels nixos-unstable`
rev = (builtins.getAttr channel channelVersions);
ref = (builtins.getAttr channel channelVersions)."ref";
rev = (builtins.getAttr channel channelVersions)."rev";
name = "nixpkgs-channels-${channel}";
};
nix_path = builtins.foldl' (sum: elem: sum +":" + builtins.concatStringsSep "=" elem) "" [