nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 45 lines 999 B view raw
1{ lib 2, fetchFromGitHub 3, crystal 4}: 5 6let 7 generic = 8 { version, hash }: 9 10 crystal.buildCrystalPackage { 11 pname = "shards"; 12 inherit version; 13 14 src = fetchFromGitHub { 15 owner = "crystal-lang"; 16 repo = "shards"; 17 rev = "v${version}"; 18 inherit hash; 19 }; 20 21 # we cannot use `make` or `shards` here as it would introduce a cyclical dependency 22 format = "crystal"; 23 shardsFile = ./shards.nix; 24 crystalBinaries.shards.src = "./src/shards.cr"; 25 26 # tries to execute git which fails spectacularly 27 doCheck = false; 28 29 meta = with lib; { 30 description = "Dependency manager for the Crystal language"; 31 license = licenses.asl20; 32 maintainers = with maintainers; [ peterhoeg ]; 33 inherit (crystal.meta) homepage platforms; 34 }; 35 }; 36 37in 38rec { 39 shards_0_17 = generic { 40 version = "0.17.3"; 41 hash = "sha256-vgcMB/vp685YwYI9XtJ5cTEjdnYaZY9aOMUnJBJaQoU="; 42 }; 43 44 shards = shards_0_17; 45}