From b7f742a5107bc3421bc104ea7b15ca866a26357f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 30 Nov 2024 17:20:26 +0100 Subject: [PATCH] codeium: add versionCheckHook --- pkgs/by-name/co/codeium/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/co/codeium/package.nix b/pkgs/by-name/co/codeium/package.nix index 1b51938dd97a..349f68debabd 100644 --- a/pkgs/by-name/co/codeium/package.nix +++ b/pkgs/by-name/co/codeium/package.nix @@ -4,6 +4,7 @@ fetchurl, gzip, autoPatchelfHook, + versionCheckHook, }: let @@ -55,6 +56,13 @@ stdenv.mkDerivation (finalAttrs: { runHook postInstall ''; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgram = "${placeholder "out"}/bin/codeium_language_server"; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; + passthru.updateScript = ./update.sh; meta = rec {