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