mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-19 19:52:28 +03:00
crystal-builder: support the new crystal2nix format
This commit is contained in:
parent
3a8da578a7
commit
16998f568b
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user