diff --git a/pkgs/by-name/ne/newsflash/package.nix b/pkgs/by-name/ne/newsflash/package.nix index ec206d87410c..a33d662d400f 100644 --- a/pkgs/by-name/ne/newsflash/package.nix +++ b/pkgs/by-name/ne/newsflash/package.nix @@ -22,23 +22,23 @@ glib-networking, librsvg, gst_all_1, - gitUpdater, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "newsflash"; - version = "4.1.4"; + version = "4.2.1"; src = fetchFromGitLab { owner = "news-flash"; repo = "news_flash_gtk"; tag = "v.${finalAttrs.version}"; - hash = "sha256-3RGa1f+V7dIgTxQKOceVSr7RwajUgwq05ypBhg6RjMA="; + hash = "sha256-me9/2sA1Thne10+JrSMvicDRxXuevCnM8Tb+kwXzNDI="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; - hash = "sha256-CRQH22EP/G6osjsuZJmTWwjq4C06DxiIXlz6zxgbDv4="; + hash = "sha256-cgu1zP85UCb/6gYNcj/khc6u1kSwX0UZ2oIjM2UUBOA="; }; postPatch = '' @@ -65,7 +65,6 @@ stdenv.mkDerivation (finalAttrs: { # Provides setup hook to fix "Unrecognized image file format" gdk-pixbuf - ]; buildInputs = [ @@ -91,17 +90,20 @@ stdenv.mkDerivation (finalAttrs: { gst-plugins-bad ]); - # For https://gitlab.com/news-flash/news_flash_gtk/-/blob/8e5fc4acf5ca6be5b8cd616466a17e7a273f9dda/src/meson.build#L47 + # For https://gitlab.com/news-flash/news_flash_gtk/-/blob/v.4.2.1/src/meson.build#L48 env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec; - passthru.updateScript = gitUpdater { - rev-prefix = "v."; - ignoredVersions = "(alpha|beta|rc)"; + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "^v.(\\d+\\.\\d+\\.\\d+)$" + ]; }; meta = { description = "Modern feed reader designed for the GNOME desktop"; homepage = "https://gitlab.com/news-flash/news_flash_gtk"; + changelog = "https://gitlab.com/news-flash/news_flash_gtk/-/raw/${finalAttrs.src.tag}/data/io.gitlab.news_flash.NewsFlash.appdata.xml.in.in#:~:text=%3Crelease%20version=%22${finalAttrs.version}%22,%3C/release%3E"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ kira-bruneau