strings.optionalString (suffices != [ ])
", accelerated with ${strings.concatStringsSep ", " suffices}";
+ executableSuffix = effectiveStdenv.hostPlatform.extensions.executable;
+
# TODO: package the Python in this repository in a Nix-like way.
# It'd be nice to migrate to buildPythonPackage, as well as ensure this repo
# is PEP 517-compatible, and ensure the correct .dist-info is generated.
# TODO(SomeoneSerge): It's better to add proper install targets at the CMake level,
# if they haven't been added yet.
postInstall = ''
- mv $out/bin/main $out/bin/llama
- mv $out/bin/server $out/bin/llama-server
+ mv $out/bin/main${executableSuffix} $out/bin/llama${executableSuffix}
+ mv $out/bin/server${executableSuffix} $out/bin/llama-server${executableSuffix}
mkdir -p $out/include
cp $src/llama.h $out/include/
'';
{
default = config.legacyPackages.llamaPackages.llama-cpp;
vulkan = config.packages.default.override { useVulkan = true; };
+ windows = config.legacyPackages.llamaPackages.llama-cpp.override {
+ stdenv = pkgs.pkgsCross.mingwW64.stdenv;
+ };
}
// lib.optionalAttrs pkgs.stdenv.isLinux {
opencl = config.packages.default.override { useOpenCL = true; };