crystal-builder: support the new crystal2nix format

main
Peter Hoeg 2 years ago
parent 3a8da578a7
commit 16998f568b
  1. 6
      pkgs/development/compilers/crystal/build-package.nix

@ -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…
Cancel
Save