2023-02-22 13:59:50 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "xc";
|
2023-05-06 13:28:32 +00:00
|
|
|
version = "0.4.1";
|
2023-02-22 13:59:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joerdav";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-05-06 13:28:32 +00:00
|
|
|
sha256 = "sha256-Dc7MVn9hF2HtXqMvWQ5UsLQW5ZKcFKt7AHcXdiWDs1I=";
|
2023-02-22 13:59:50 +00:00
|
|
|
};
|
|
|
|
|
2023-04-20 04:10:55 +00:00
|
|
|
vendorHash = "sha256-hCdIO377LiXFKz0GfCmAADTPfoatk8YWzki7lVP3yLw=";
|
2023-02-22 13:59:50 +00:00
|
|
|
|
2023-05-06 13:27:15 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2023-02-22 13:59:50 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Markdown defined task runner";
|
2023-05-06 13:28:32 +00:00
|
|
|
homepage = "https://xcfile.dev/";
|
|
|
|
changelog = "https://github.com/joerdav/xc/releases/tag/${src.rev}";
|
2023-02-22 13:59:50 +00:00
|
|
|
license = licenses.mit;
|
2023-05-06 13:27:15 +00:00
|
|
|
maintainers = with maintainers; [ figsoda joerdav ];
|
2023-02-22 13:59:50 +00:00
|
|
|
};
|
|
|
|
}
|