35 lines
848 B
Nix
35 lines
848 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitea,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "reforger-update-api";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "git.skdevstudios.com";
|
|
owner = "specCon18";
|
|
repo = "reforger-update-api";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-MHV9z0O7jksTOxNI+a/aDORMtqO/mC5kiGBe75YWclI=";
|
|
};
|
|
|
|
vendorHash = "sha256-8kzKNAzXcSxNSY+8H/PbYVV0J2p9q1dn1pbt7lo3g5o=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.Version=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
# description = "Manage your charm account on the CLI";
|
|
# homepage = "https://github.com/charmbracelet/charm";
|
|
# changelog = "https://github.com/charmbracelet/charm/releases/tag/v${version}";
|
|
# license = licenses.mit;
|
|
# maintainers = with maintainers; [ penguwin ];
|
|
mainProgram = "armareforger_update_checker";
|
|
};
|
|
}
|