2024-10-02 20:21:33 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ktor-cli";
|
2024-11-15 15:14:24 +00:00
|
|
|
version = "0.3.0";
|
2024-10-02 20:21:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ktorio";
|
|
|
|
repo = "ktor-cli";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-11-15 15:14:24 +00:00
|
|
|
hash = "sha256-6KPi7CntJjzKfpOgHlGOv20ifIu+FT63dLeq+ko4jMc=";
|
2024-10-02 20:21:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
subPackages = "cmd/ktor";
|
|
|
|
|
2024-11-15 15:14:24 +00:00
|
|
|
vendorHash = "sha256-ITYNSq2hs0QcOZZShkwtjZVcSyGY1uCmhgoZ0l9nPP0=";
|
2024-10-02 20:21:33 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.Version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
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 = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ nartsiss ];
|
|
|
|
mainProgram = "ktor";
|
|
|
|
};
|
|
|
|
}
|