From 5e71be4c387c5299aaf311b653f021409db140eb Mon Sep 17 00:00:00 2001 From: Firelight Flagboy Date: Tue, 8 Apr 2025 10:54:52 +0200 Subject: [PATCH] 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. --- pkgs/development/tools/wasmedge/default.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/wasmedge/default.nix b/pkgs/development/tools/wasmedge/default.nix index d21ac338f34f..e416f563788f 100644 --- a/pkgs/development/tools/wasmedge/default.nix +++ b/pkgs/development/tools/wasmedge/default.nix @@ -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";