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

23 lines
607 B
Nix
Raw Normal View History

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