glance: 0.7.3 -> 0.7.6, fix version in footer (#390430)

This commit is contained in:
Pol Dellaiera
2025-03-16 21:48:35 +01:00
committed by GitHub
2 changed files with 26 additions and 5 deletions
+13 -1
View File
@@ -1,4 +1,4 @@
{ lib, ... }:
{ config, lib, ... }:
{
name = "glance";
@@ -22,7 +22,15 @@
};
};
extraPythonPackages =
p: with p; [
beautifulsoup4
types-beautifulsoup4
];
testScript = ''
from bs4 import BeautifulSoup
machine_default.start()
machine_default.wait_for_unit("glance.service")
machine_default.wait_for_open_port(8080)
@@ -30,6 +38,10 @@
machine_custom_port.start()
machine_custom_port.wait_for_unit("glance.service")
machine_custom_port.wait_for_open_port(5678)
soup = BeautifulSoup(machine_default.succeed("curl http://localhost:8080"))
expected_version = "${config.nodes.machine_default.services.glance.package.version}"
assert any(a.text == expected_version for a in soup.select(".footer a"))
'';
meta.maintainers = [ lib.maintainers.drupol ];
+13 -4
View File
@@ -8,17 +8,23 @@
buildGoModule rec {
pname = "glance";
version = "0.7.3";
version = "0.7.6";
src = fetchFromGitHub {
owner = "glanceapp";
repo = "glance";
rev = "v${version}";
hash = "sha256-kQ4XVO6sotsIjIhkECn6FYik3ITYOZcDKyzk3I8JvkU=";
tag = "v${version}";
hash = "sha256-1DIngje7UT86eI3ZJWd71BkbAvHJ2JC0LUHAQXz0rfc=";
};
vendorHash = "sha256-lURRHlZoxbuW1SXxrxy2BkMndcEllGFmVCB4pXBad8Q=";
ldflags = [
"-s"
"-w"
"-X github.com/glanceapp/glance/internal/glance.buildVersion=${version}"
];
excludedPackages = [ "scripts/build-and-ship" ];
passthru = {
@@ -34,6 +40,9 @@ buildGoModule rec {
description = "Self-hosted dashboard that puts all your feeds in one place";
mainProgram = "glance";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ dvn0 ];
maintainers = with lib.maintainers; [
dvn0
defelo
];
};
}