crystal-builder: support the new crystal2nix format

This commit is contained in:
Peter Hoeg 2022-04-09 15:00:54 +08:00
parent 3a8da578a7
commit 16998f568b

View File

@ -6,6 +6,7 @@
, pkg-config
, which
, linkFarm
, fetchgit
, fetchFromGitHub
, installShellFiles
, removeReferencesTo
@ -39,7 +40,10 @@ let
crystalLib = linkFarm "crystal-lib" (lib.mapAttrsToList
(name: value: {
inherit name;
path = fetchFromGitHub value;
path =
if (builtins.hasAttr "url" value)
then fetchgit value
else fetchFromGitHub value;
})
(import shardsFile));