Skip to content

Commit

Permalink
ktor-cli: init at 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nartsisss committed Sep 19, 2024
1 parent 2c942a2 commit 72b9344
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/by-name/kt/ktor-cli/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:

buildGoModule rec {
pname = "ktor-cli";
version = "0.2.0";

src = fetchFromGitHub {
owner = "ktorio";
repo = "ktor-cli";
rev = "refs/tags/${version}";
hash = "sha256-Q2k5U7lP3kyQu0l4qU1jdq6j0SZ97ZFJF4gAneQ2ess=";
};

subPackages = "cmd/ktor";

vendorHash = "sha256-gu/tuQPScSN0qsNd3fz/tz1ck6OGj/lupnNd/xLJxmk=";

ldflags = [
"-X main.Version=${version}"
];

meta = with lib; {
description = "Command-line tool for creating Ktor projects";
homepage = "https://github.com/ktorio/ktor-cli";
changelog = "https://github.com/ktorio/ktor-cli/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ nartsiss ];
mainProgram = "ktor";
};
}

0 comments on commit 72b9344

Please sign in to comment.