nixpkgs/pkgs/development/compilers/crystal/crystal2nix.nix

23 lines
607 B
Nix
Raw Normal View History

2019-08-26 18:23:55 +02:00
{ lib, crystal, nix-prefetch-git }:
2020-04-19 17:43:22 +02:00
2019-08-26 18:23:55 +02:00
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";
2020-04-19 17:43:22 +02:00
format = "crystal";
2019-08-26 18:23:55 +02:00
crystalBinaries.crystal2nix.src = "crystal2nix.cr";
2020-04-19 17:43:22 +02:00
# it will blow up without a shard.yml file
doInstallCheck = false;
2019-08-26 18:23:55 +02:00
meta = with lib; {
description = "Utility to convert Crystal's shard.lock files to a Nix file";
license = licenses.mit;
2020-04-19 17:43:22 +02:00
maintainers = with maintainers; [ manveru ];
2019-08-26 18:23:55 +02:00
};
}