fcc03dbfc5
GitOrigin-RevId: ff96a0fa5635770390b184ae74debea75c3fd534
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{ lib, fetchFromGitHub, crystal, makeWrapper, openssl }:
|
|
|
|
crystal.buildCrystalPackage rec {
|
|
pname = "lucky-cli";
|
|
version = "0.26.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "luckyframework";
|
|
repo = "lucky_cli";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bZWyAZrAYG45fqmEQYXsk8YLKurpppaahOkALAQXGhY=";
|
|
};
|
|
|
|
# the integration tests will try to clone a remote repos
|
|
postPatch = ''
|
|
rm -rf spec/integration
|
|
'';
|
|
|
|
format = "crystal";
|
|
|
|
lockFile = ./shard.lock;
|
|
shardsFile = ./shards.nix;
|
|
|
|
crystalBinaries.lucky.src = "src/lucky.cr";
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/lucky \
|
|
--prefix PATH : ${lib.makeBinPath [ crystal ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description =
|
|
"A Crystal library for creating and running tasks. Also generates Lucky projects";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.unix;
|
|
broken = lib.versionOlder crystal.version "0.35.1";
|
|
};
|
|
}
|