From bb02c747cc882c7a6f3fd0e05afb272d56b4aa1a Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Wed, 17 Jul 2024 21:02:04 +0800 Subject: [PATCH] xed-editor: 3.6.4 -> 3.6.5 https://github.com/linuxmint/xed/compare/3.6.4...3.6.5 --- pkgs/applications/editors/xed-editor/default.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/editors/xed-editor/default.nix b/pkgs/applications/editors/xed-editor/default.nix index 313b7fb6ce8a..4078721a085f 100644 --- a/pkgs/applications/editors/xed-editor/default.nix +++ b/pkgs/applications/editors/xed-editor/default.nix @@ -12,6 +12,7 @@ , python3 , meson , ninja +, versionCheckHook , wrapGAppsHook3 , intltool , itstool @@ -19,13 +20,13 @@ stdenv.mkDerivation rec { pname = "xed-editor"; - version = "3.6.4"; + version = "3.6.5"; src = fetchFromGitHub { owner = "linuxmint"; repo = "xed"; rev = version; - sha256 = "sha256-EwBcgFHw6Mh+eS5hfTLoywH0dVt/TpNt4y6xQxe/x/Q="; + sha256 = "sha256-FG8SlMyhee0W88Pt3oW1tsFyy/KeCOE+QlDbE6hzjcg="; }; patches = [ @@ -41,6 +42,7 @@ stdenv.mkDerivation rec { itstool ninja python3 + versionCheckHook wrapGAppsHook3 ]; @@ -55,14 +57,7 @@ stdenv.mkDerivation rec { ]; doInstallCheck = true; - installCheckPhase = '' - if [[ "$($out/bin/xed --version)" == "xed - Version ${version}" ]] ; then - echo "${pname} smoke test passed" - else - echo "${pname} smoke test failed" - return 1 - fi - ''; + versionCheckProgram = "${placeholder "out"}/bin/xed"; meta = with lib; { description = "Light weight text editor from Linux Mint";