wasmedge: Fix use supported llvm version by the project

Trying to build this package build because the project use deprecated
`LLVMBuildNUWNeg` (that was deprecated between v17 and v19 of llvm).
The `0.14.1` state that it support the version 17 of `llvm`.

So I've fixed the build by using that stated version.
This commit is contained in:
Firelight Flagboy
2025-04-20 19:01:43 +02:00
parent 6f1396f7dc
commit 5e71be4c38
+13 -2
View File
@@ -2,7 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
llvmPackages,
llvmPackages_17,
boost,
cmake,
spdlog,
@@ -12,7 +12,18 @@
testers,
}:
stdenv.mkDerivation (finalAttrs: {
let
# The supported version is found in the changelog, the documentation does indicate a minimum version but not a maximum.
# The project is also using a `flake.nix` so we can retrieve the used llvm version with:
#
# ```shell
# nix eval --inputs-from .# nixpkgs#llvmPackages.libllvm.version
# ```
#
# > Where `.#` is the flake path were the repo `wasmedge` was cloned at the expected version.
llvmPackages = llvmPackages_17;
in
llvmPackages.stdenv.mkDerivation (finalAttrs: {
pname = "wasmedge";
version = "0.14.1";