2023-02-22 13:59:50 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "xc";
|
2024-01-19 00:24:19 +00:00
|
|
|
version = "0.8.0";
|
2023-02-22 13:59:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joerdav";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-19 00:24:19 +00:00
|
|
|
sha256 = "sha256-vTyCS85xbJnAgbasWD6LFxij9EezzlJ1pyvCJptqmOU=";
|
2023-02-22 13:59:50 +00:00
|
|
|
};
|
|
|
|
|
2024-01-19 00:24:19 +00:00
|
|
|
vendorHash = "sha256-EbIuktQ2rExa2DawyCamTrKRC1yXXMleRB8/pcKFY5c=";
|
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
|
|
|
};
|
|
|
|
}
|