Skip to content
Permalink
Browse files

lucky-cli: init at 0.19

  • Loading branch information
peterhoeg committed Mar 19, 2020
1 parent a2e06fc commit 53b24dacf55187345138bd94e763e39ea8c3a826
@@ -0,0 +1,34 @@
{ lib, fetchFromGitHub, crystal, makeWrapper }:

crystal.buildCrystalPackage rec {
pname = "lucky-cli";
version = "0.19.0";

src = fetchFromGitHub {
owner = "luckyframework";
repo = "lucky_cli";
rev = "v${version}";
sha256 = "0j5igx1yq6xpxkyhb8vqhzmgy4r4b47iplyvvgcnlksj3h67rxaz";
};

lockFile = ./shard.lock;
shardsFile = ./shards.nix;

crystalBinaries.lucky.src = "src/lucky.cr";

nativeBuildInputs = [ makeWrapper ];

postInstall = ''
install -Dm444 README.md -t $out/share/doc/${pname}
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;
};
}
@@ -0,0 +1,6 @@
version: 1.0
shards:
teeplate:
github: luckyframework/teeplate
version: 0.8.0

@@ -0,0 +1,8 @@
{
teeplate = {
owner = "luckyframework";
repo = "teeplate";
rev = "v0.8.0";
sha256 = "1w2b56fwc03zamirc7sp7kp0ccsp003nd5hmzcrp051w7pdwvfj0";
};
}
@@ -3952,6 +3952,8 @@ in

httplab = callPackage ../tools/networking/httplab { };

lucky-cli = callPackage ../development/web/lucky-cli { };

partclone = callPackage ../tools/backup/partclone { };

partimage = callPackage ../tools/backup/partimage { };

0 comments on commit 53b24da

Please sign in to comment.
You can’t perform that action at this time.