nixpkgs/pkgs/development/tools/xc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
682 B
Nix
Raw Normal View History

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
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
2023-02-22 14:59:50 +01:00
meta = with lib; {
description = "Markdown defined task runner";
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;
maintainers = with maintainers; [ figsoda joerdav ];
2023-02-22 14:59:50 +01:00
};
}