From 7d43d69341688440e89e4d1a4997518b1a7828fb Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 19 Dec 2024 16:57:20 +0100 Subject: [PATCH] dunst: 1.12.0 -> 1.12.1 Diff: https://github.com/dunst-project/dunst/compare/refs/tags/v1.12.0...v1.12.1 --- pkgs/by-name/du/dunst/package.nix | 35 ++++++++++++++++++------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/du/dunst/package.nix b/pkgs/by-name/du/dunst/package.nix index a11af25ca81f..f877e4f8ac82 100644 --- a/pkgs/by-name/du/dunst/package.nix +++ b/pkgs/by-name/du/dunst/package.nix @@ -23,7 +23,7 @@ pango, xorgproto, librsvg, - testers, + versionCheckHook, nix-update-script, withX11 ? true, withWayland ? true, @@ -31,13 +31,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "dunst"; - version = "1.12.0"; + version = "1.12.1"; src = fetchFromGitHub { owner = "dunst-project"; repo = "dunst"; - rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-rnR/AErsjsaOMM/aF8VXZHV8b8OiUMRCi8IFLT4/8Vo="; + tag = "v${finalAttrs.version}"; + hash = "sha256-MC35UE6cA1xA1qaOppvHAjuevbl2z0Twct1G5Uv84pU="; }; nativeBuildInputs = [ @@ -75,13 +75,16 @@ stdenv.mkDerivation (finalAttrs: { "man" ]; - makeFlags = [ - "PREFIX=$(out)" - "VERSION=$(version)" - "SYSCONFDIR=$(out)/etc" - "SERVICEDIR_DBUS=$(out)/share/dbus-1/services" - "SERVICEDIR_SYSTEMD=$(out)/lib/systemd/user" - ] ++ lib.optional (!withX11) "X11=0" ++ lib.optional (!withWayland) "WAYLAND=0"; + makeFlags = + [ + "PREFIX=$(out)" + "VERSION=$(version)" + "SYSCONFDIR=$(out)/etc" + "SERVICEDIR_DBUS=$(out)/share/dbus-1/services" + "SERVICEDIR_SYSTEMD=$(out)/lib/systemd/user" + ] + ++ lib.optional (!withX11) "X11=0" + ++ lib.optional (!withWayland) "WAYLAND=0"; postInstall = '' wrapProgram $out/bin/dunst \ @@ -102,16 +105,20 @@ stdenv.mkDerivation (finalAttrs: { --replace-fail "jq" "${lib.getExe jq}" ''; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; + passthru = { - tests.version = testers.testVersion { - package = finalAttrs.finalPackage; - }; updateScript = nix-update-script { }; }; meta = { description = "Lightweight and customizable notification daemon"; homepage = "https://dunst-project.org/"; + changelog = "https://github.com/dunst-project/dunst/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.bsd3; mainProgram = "dunst"; maintainers = with lib.maintainers; [