|
|
@@ -67,6 +67,8 @@ let
|
|
|
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.
|
|
|
@@ -244,8 +246,8 @@ effectiveStdenv.mkDerivation (
|
|
|
# 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/
|
|
|
'';
|