nix: handle ref/rev correctly for channel fetch
This commit is contained in:
parent
97abdf17e0
commit
cf657e16ff
5 changed files with 29 additions and 5 deletions
|
@ -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) "" [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue