Merge pull request #295366 from drupol/gpt4all/bump/2-7-3

gpt4all: 2.7.2 -> 2.7.3
This commit is contained in:
Pol Dellaiera 2024-03-12 21:23:10 +01:00 committed by GitHub
commit 6bb4eefabf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,11 +11,11 @@
stdenv.mkDerivation (finalAttrs: {
pname = "gpt4all";
version = "2.7.2";
version = "2.7.3";
src = fetchFromGitHub {
fetchSubmodules = true;
hash = "sha256-casGjHiVZXec+9HGIH5fcpfWgLfsGCM5pEBINXJgMY8=";
hash = "sha256-hIfeADP3tiooGZr/OMVFIkOAniMWXj9AsVzMPlVbucE=";
owner = "nomic-ai";
repo = "gpt4all";
rev = "v${finalAttrs.version}";
@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: {
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace 'set(CMAKE_INSTALL_PREFIX ''${CMAKE_BINARY_DIR}/install)' ""
--replace-fail 'set(CMAKE_INSTALL_PREFIX ''${CMAKE_BINARY_DIR}/install)' ""
'';
nativeBuildInputs = [
@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
install -m 444 -D $src/gpt4all-chat/flatpak-manifest/io.gpt4all.gpt4all.desktop $out/share/applications/io.gpt4all.gpt4all.desktop
install -m 444 -D $src/gpt4all-chat/icons/logo.svg $out/share/icons/hicolor/scalable/apps/io.gpt4all.gpt4all.svg
substituteInPlace $out/share/applications/io.gpt4all.gpt4all.desktop \
--replace 'Exec=chat' 'Exec=${finalAttrs.meta.mainProgram}'
--replace-fail 'Exec=chat' 'Exec=${finalAttrs.meta.mainProgram}'
'';
meta = {