mirror of
https://github.com/polygon/gpt4all-nix.git
synced 2024-10-26 15:19:20 +03:00
First working version
This commit is contained in:
commit
cc4e4f66b5
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
result
|
46
flake.lock
Normal file
46
flake.lock
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"nodes": {
|
||||
"gpt4all-chat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1683465609,
|
||||
"narHash": "sha256-+FnySE2i92rDOndoyCeb1IVpyqQSIn4srlwXgZJWbd8=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "9bd5609ba0fd19e8445a2ae816c494e7a01baaa1",
|
||||
"revCount": 321,
|
||||
"submodules": true,
|
||||
"type": "git",
|
||||
"url": "https://github.com/nomic-ai/gpt4all-chat"
|
||||
},
|
||||
"original": {
|
||||
"submodules": true,
|
||||
"type": "git",
|
||||
"url": "https://github.com/nomic-ai/gpt4all-chat"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1683408522,
|
||||
"narHash": "sha256-9kcPh6Uxo17a3kK3XCHhcWiV1Yu1kYj22RHiymUhMkU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "897876e4c484f1e8f92009fd11b7d988a121a4e7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"gpt4all-chat": "gpt4all-chat",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
23
flake.nix
Normal file
23
flake.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
description = "A very basic flake";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
inputs.gpt4all-chat = {
|
||||
url = "https://github.com/nomic-ai/gpt4all-chat";
|
||||
flake = false;
|
||||
submodules = true;
|
||||
type = "git";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, gpt4all-chat }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
packages.${system} = {
|
||||
gpt4all-chat = pkgs.qt6Packages.callPackage ./gpt4all-chat.nix { src=gpt4all-chat; };
|
||||
default = self.packages.${system}.gpt4all-chat;
|
||||
};
|
||||
};
|
||||
}
|
41
gpt4all-chat.nix
Normal file
41
gpt4all-chat.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ src
|
||||
, lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, qmake
|
||||
, qtquicktimeline
|
||||
, qtsvg
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "gpt4all-chat";
|
||||
version = "nightly";
|
||||
|
||||
inherit src;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace 'set(CMAKE_INSTALL_PREFIX ''${CMAKE_BINARY_DIR}/install)' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
wrapQtAppsHook
|
||||
cmake
|
||||
qmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtquicktimeline
|
||||
qtsvg
|
||||
];
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
description = "Gpt4all-j chat";
|
||||
homepage = "https://github.com/nomic-ai/gpt4all-chat";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user