2023-03-04 12:14:45 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "xc";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.4.1";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joerdav";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-Dc7MVn9hF2HtXqMvWQ5UsLQW5ZKcFKt7AHcXdiWDs1I=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = "sha256-hCdIO377LiXFKz0GfCmAADTPfoatk8YWzki7lVP3yLw=";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Markdown defined task runner";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://xcfile.dev/";
|
|
|
|
changelog = "https://github.com/joerdav/xc/releases/tag/${src.rev}";
|
2023-03-04 12:14:45 +00:00
|
|
|
license = licenses.mit;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ figsoda joerdav ];
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
}
|