lucky-cli: init at 0.20
This commit is contained in:
parent
61660a7aeb
commit
26a69b3d3e
42
pkgs/development/web/lucky-cli/default.nix
Normal file
42
pkgs/development/web/lucky-cli/default.nix
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{ lib, fetchFromGitHub, crystal, makeWrapper, openssl }:
|
||||||
|
|
||||||
|
crystal.buildCrystalPackage rec {
|
||||||
|
pname = "lucky-cli";
|
||||||
|
version = "0.20.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "luckyframework";
|
||||||
|
repo = "lucky_cli";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0n7fgnsivf39bkxpf7xgg9dqkam08axdn1j45wl1n0r4qmfkjs94";
|
||||||
|
};
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
};
|
||||||
|
}
|
5
pkgs/development/web/lucky-cli/shard.lock
Normal file
5
pkgs/development/web/lucky-cli/shard.lock
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
version: 1.0
|
||||||
|
shards:
|
||||||
|
teeplate:
|
||||||
|
github: luckyframework/teeplate
|
||||||
|
version: 0.8.1
|
8
pkgs/development/web/lucky-cli/shards.nix
Normal file
8
pkgs/development/web/lucky-cli/shards.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
teeplate = {
|
||||||
|
owner = "luckyframework";
|
||||||
|
repo = "teeplate";
|
||||||
|
rev = "v0.8.1";
|
||||||
|
sha256 = "022jmmg3d2wq2xnhc63afldm9vrcr8xqn43s9i39d7qflrzrfc7v";
|
||||||
|
};
|
||||||
|
}
|
@ -3991,6 +3991,8 @@ in
|
|||||||
|
|
||||||
httplab = callPackage ../tools/networking/httplab { };
|
httplab = callPackage ../tools/networking/httplab { };
|
||||||
|
|
||||||
|
lucky-cli = callPackage ../development/web/lucky-cli { };
|
||||||
|
|
||||||
partclone = callPackage ../tools/backup/partclone { };
|
partclone = callPackage ../tools/backup/partclone { };
|
||||||
|
|
||||||
partimage = callPackage ../tools/backup/partimage { };
|
partimage = callPackage ../tools/backup/partimage { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user