Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
6eb3cddc
Commit
6eb3cddc
authored
Jan 25, 2024
by
Marc Raiser
Browse files
To build on NixOS: nix-shell --run 'go generate ./... && go build .'
parent
a4564232
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
default.nix
default.nix
+24
-0
No files found.
default.nix
0 → 100644
View file @
6eb3cddc
with
(
import
<
nixpkgs
>
{});
let
LLP
=
with
pkgs
;
[
gcc11
cudatoolkit
linuxPackages
.
nvidia_x11
go
cmake
];
LD_LIBRARY_PATH
=
pkgs
.
lib
.
makeLibraryPath
LLP
;
in
stdenv
.
mkDerivation
{
name
=
"ollama-env"
;
buildInputs
=
LLP
;
src
=
null
;
# IMPORTANT: Edit ./llm/generate/gen_linux.sh
shellHook
=
''
SOURCE_DATE_EPOCH=$(date +%s)
export LD_LIBRARY_PATH=
${
LD_LIBRARY_PATH
}
export CUDA_LIB_DIR=
${
cudatoolkit
.
out
}
/lib
export CUDART_LIB_DIR=
${
cudatoolkit
.
lib
}
/lib
export NVCC_PREPEND_FLAGS='-ccbin
${
gcc11
}
/bin/'
''
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment