about summary refs log tree commit diff
path: root/pkgs/development/compilers/crystal/crystal2nix.nix
blob: 5fc40cd23741dc69fad5c6cc22b7207a2414be55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, crystal, nix-prefetch-git }:

crystal.buildCrystalPackage {
  pname = "crystal2nix";
  version = "unstable-2018-07-31";

  nixPrefetchGit = "${lib.getBin nix-prefetch-git}/bin/nix-prefetch-git";
  unpackPhase = "substituteAll ${./crystal2nix.cr} crystal2nix.cr";

  format = "crystal";

  crystalBinaries.crystal2nix.src = "crystal2nix.cr";

  # it will blow up without a shard.yml file
  doInstallCheck = false;

  meta = with lib; {
    description = "Utility to convert Crystal's shard.lock files to a Nix file";
    license = licenses.mit;
    maintainers = with maintainers; [ manveru ];
  };
}