2023-03-04 12:14:45 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "xc";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.6.0";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "joerdav";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-0Er8MqAqKCyz928bdbYRO3D9sGZ/JJBrCXhlq9M2dEA=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
vendorHash = "sha256-J4/a4ujM7A6bDwRlLCYt/PmJf6HZUmdYcJMux/3KyUI=";
|
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
|
|
|
};
|
|
|
|
}
|