mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
e195435fa6
Diff: https://github.com/joerdav/xc/compare/v0.4.0...v0.4.1 Changelog: https://github.com/joerdav/xc/releases/tag/v0.4.1
30 lines
682 B
Nix
30 lines
682 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "xc";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joerdav";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Dc7MVn9hF2HtXqMvWQ5UsLQW5ZKcFKt7AHcXdiWDs1I=";
|
|
};
|
|
|
|
vendorHash = "sha256-hCdIO377LiXFKz0GfCmAADTPfoatk8YWzki7lVP3yLw=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.version=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Markdown defined task runner";
|
|
homepage = "https://xcfile.dev/";
|
|
changelog = "https://github.com/joerdav/xc/releases/tag/${src.rev}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda joerdav ];
|
|
};
|
|
}
|