49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "glance";
|
|
version = "0.7.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "glanceapp";
|
|
repo = "glance";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-MinskibgOCb8OytC+Uxg31g00Ha/un7MF+uvL9xosUU=";
|
|
};
|
|
|
|
vendorHash = "sha256-+7mOCU5GNQV8+s9QPki+7CDi4qtOIpwjC//QracwzHI=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/glanceapp/glance/internal/glance.buildVersion=v${finalAttrs.version}"
|
|
];
|
|
|
|
excludedPackages = [ "scripts/build-and-ship" ];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests = {
|
|
service = nixosTests.glance;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://github.com/glanceapp/glance";
|
|
changelog = "https://github.com/glanceapp/glance/releases/tag/v${finalAttrs.version}";
|
|
description = "Self-hosted dashboard that puts all your feeds in one place";
|
|
mainProgram = "glance";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [
|
|
dvn0
|
|
defelo
|
|
];
|
|
};
|
|
})
|