lol

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

authored by

Pol Dellaiera and committed by
GitHub
2fb135fe 3c5b913d

+26 -5
+13 -1
nixos/tests/glance.nix
··· 1 - { lib, ... }: 1 + { config, lib, ... }: 2 2 3 3 { 4 4 name = "glance"; ··· 22 22 }; 23 23 }; 24 24 25 + extraPythonPackages = 26 + p: with p; [ 27 + beautifulsoup4 28 + types-beautifulsoup4 29 + ]; 30 + 25 31 testScript = '' 32 + from bs4 import BeautifulSoup 33 + 26 34 machine_default.start() 27 35 machine_default.wait_for_unit("glance.service") 28 36 machine_default.wait_for_open_port(8080) ··· 30 38 machine_custom_port.start() 31 39 machine_custom_port.wait_for_unit("glance.service") 32 40 machine_custom_port.wait_for_open_port(5678) 41 + 42 + soup = BeautifulSoup(machine_default.succeed("curl http://localhost:8080")) 43 + expected_version = "${config.nodes.machine_default.services.glance.package.version}" 44 + assert any(a.text == expected_version for a in soup.select(".footer a")) 33 45 ''; 34 46 35 47 meta.maintainers = [ lib.maintainers.drupol ];
+13 -4
pkgs/by-name/gl/glance/package.nix
··· 8 8 9 9 buildGoModule rec { 10 10 pname = "glance"; 11 - version = "0.7.3"; 11 + version = "0.7.6"; 12 12 13 13 src = fetchFromGitHub { 14 14 owner = "glanceapp"; 15 15 repo = "glance"; 16 - rev = "v${version}"; 17 - hash = "sha256-kQ4XVO6sotsIjIhkECn6FYik3ITYOZcDKyzk3I8JvkU="; 16 + tag = "v${version}"; 17 + hash = "sha256-1DIngje7UT86eI3ZJWd71BkbAvHJ2JC0LUHAQXz0rfc="; 18 18 }; 19 19 20 20 vendorHash = "sha256-lURRHlZoxbuW1SXxrxy2BkMndcEllGFmVCB4pXBad8Q="; 21 21 22 + ldflags = [ 23 + "-s" 24 + "-w" 25 + "-X github.com/glanceapp/glance/internal/glance.buildVersion=${version}" 26 + ]; 27 + 22 28 excludedPackages = [ "scripts/build-and-ship" ]; 23 29 24 30 passthru = { ··· 34 40 description = "Self-hosted dashboard that puts all your feeds in one place"; 35 41 mainProgram = "glance"; 36 42 license = lib.licenses.agpl3Only; 37 - maintainers = with lib.maintainers; [ dvn0 ]; 43 + maintainers = with lib.maintainers; [ 44 + dvn0 45 + defelo 46 + ]; 38 47 }; 39 48 }