fixup all kinds of bugs

This commit is contained in:
steveej 2022-01-09 21:50:41 +01:00
parent 02bb843015
commit acc37c64f9
10 changed files with 45 additions and 31 deletions

View file

@ -10,14 +10,14 @@ let
inherit name;
inherit (channelVersion) url ref rev;
};
nixPath = builtins.foldl' (path: elemName:
nixPath = builtins.concatStringsSep ":" (builtins.map (elemName:
let
elem = builtins.getAttr elemName channelVersions;
elemPath = (mkChannelSource elemName);
suffix = if builtins.hasAttr "suffix" elem then elem.suffix else "";
in
path + ":" + builtins.concatStringsSep "=" [ elemName elemPath ] + suffix
) "" (builtins.attrNames channelVersions);
builtins.concatStringsSep "=" [ elemName elemPath ] + suffix
) (builtins.attrNames channelVersions));
pkgs = import (mkChannelSource "nixpkgs") {};
in