codeium 0 -> 1 attrpath: codeium Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/9g2wzifs3crlrzz14xwcpnjkq1b1n508-packages.json.drv building '/nix/store/9g2wzifs3crlrzz14xwcpnjkq1b1n508-packages.json.drv'... Going to be running update for following packages: - codeium-1.8.16 Press Enter key to continue... Running update for: - codeium-1.8.16: UPDATING ... - codeium-1.8.16: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/co/codeium/package.nix b/pkgs/by-name/co/codeium/package.nix index 923d4fce8f21..437df8439ed3 100644 --- a/pkgs/by-name/co/codeium/package.nix +++ b/pkgs/by-name/co/codeium/package.nix @@ -13,10 +13,10 @@ let }.${system} or throwSystem; hash = { - x86_64-linux = "sha256-9r3v5xCYYoxfs3zY7/v8K3B5CxJPcNcEtkDU6kuvzGE="; - aarch64-linux = "sha256-Q/PktmEfTBX1ycK/7ebsJSE25FQ8dO+ejv+fAOKlNy8="; - x86_64-darwin = "sha256-vyv5oyMl9Itu434okNmgRX0A1UTX3ZxJ3Q56akpIbrU="; - aarch64-darwin = "sha256-H2ghAfRzDhbCyxrKmJ2ritkUuDeWZzINr8DROzbOyUQ="; + x86_64-linux = "sha256-AHjR6lHszYqZ2yC/uY2DmB67xMUFZliqI29Ptes2SoY="; + aarch64-linux = "sha256-2NYlec6gpVMJwZctEqwn5rQiTrb5PmaxEz3lQxF1qmk="; + x86_64-darwin = "sha256-OeMbO2lDK6XUF3ht+09ZWOL7UsEEVTrKyXOfhny8DhM="; + aarch64-darwin = "sha256-4CQvJkd3kI7XJz46QsSUBtWLmxDu7AcAJwRS3amv0SM="; }.${system} or throwSystem; bin = "$out/bin/codeium_language_server"; @@ -24,7 +24,7 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "codeium"; - version = "1.8.16"; + version = "1.8.22"; src = fetchurl { name = "${finalAttrs.pname}-${finalAttrs.version}.gz"; url = "https://github.com/Exafunction/codeium/releases/download/language-server-v${finalAttrs.version}/language_server_${plat}.gz"; An auto update branch exists with message `codeium: 1.8.16 -> 1.8.21`. New version is 1.8.22. The auto update branch does not match or exceed the new version. Old version 1.8.16" not present in master derivation file with contents: { stdenv, lib, fetchurl, gzip, autoPatchelfHook }: let inherit (stdenv.hostPlatform) system; throwSystem = throw "Unsupported system: ${system}"; plat = { x86_64-linux = "linux_x64"; aarch64-linux = "linux_arm"; x86_64-darwin = "macos_x64"; aarch64-darwin = "macos_arm"; }.${system} or throwSystem; hash = { x86_64-linux = "sha256-AHjR6lHszYqZ2yC/uY2DmB67xMUFZliqI29Ptes2SoY="; aarch64-linux = "sha256-2NYlec6gpVMJwZctEqwn5rQiTrb5PmaxEz3lQxF1qmk="; x86_64-darwin = "sha256-OeMbO2lDK6XUF3ht+09ZWOL7UsEEVTrKyXOfhny8DhM="; aarch64-darwin = "sha256-4CQvJkd3kI7XJz46QsSUBtWLmxDu7AcAJwRS3amv0SM="; }.${system} or throwSystem; bin = "$out/bin/codeium_language_server"; in stdenv.mkDerivation (finalAttrs: { pname = "codeium"; version = "1.8.22"; src = fetchurl { name = "${finalAttrs.pname}-${finalAttrs.version}.gz"; url = "https://github.com/Exafunction/codeium/releases/download/language-server-v${finalAttrs.version}/language_server_${plat}.gz"; inherit hash; }; nativeBuildInputs = [ gzip ] ++ lib.optionals stdenv.isLinux [ autoPatchelfHook ]; dontUnpack = true; dontConfigure = true; dontBuild = true; installPhase = '' runHook preInstall mkdir -p $out/bin gzip -dc $src > ${bin} chmod +x ${bin} runHook postInstall ''; passthru.updateScript = ./update.sh; meta = rec { description = "Codeium language server"; longDescription = '' Codeium proprietary language server, patched for Nix(OS) compatibility. bin/language_server_x must be symlinked into the plugin directory, replacing the existing binary. For example: ```shell ln -s "$(which codeium_language_server)" /home/a/.local/share/JetBrains/Rider2023.1/codeium/662505c9b23342478d971f66a530cd102ae35df7/language_server_linux_x64 ``` ''; homepage = "https://codeium.com/"; downloadPage = homepage; changelog = homepage; license = lib.licenses.unfree; maintainers = with lib.maintainers; [ anpin ]; mainProgram = "codeium"; platforms = [ "aarch64-darwin" "aarch64-linux" "x86_64-linux" "x86_64-darwin" ]; sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; }; })