From 23886ecf7d4b81f2db276b221b6f30d1d7fc7a10 Mon Sep 17 00:00:00 2001 From: Hussein Ait Lahcen Date: Mon, 9 Dec 2024 16:53:43 +0100 Subject: [PATCH] chore: remove obsolete libwasmvm --- networks/simulation/simd.nix | 21 --------------------- tools/libwasmvm/libwasmvm.nix | 3 --- 2 files changed, 24 deletions(-) diff --git a/networks/simulation/simd.nix b/networks/simulation/simd.nix index 4316503acf..2fd57d433b 100644 --- a/networks/simulation/simd.nix +++ b/networks/simulation/simd.nix @@ -31,18 +31,6 @@ _: { let libwasmvm = self'.packages.libwasmvm-2_1_2; in - # libwasmvm = pkgs.stdenv.mkDerivation { - # name = "libwasmvm"; - # src = pkgs.fetchurl { - # url = "https://github.com/CosmWasm/wasmvm/releases/download/v2.2.0-rc.2/libwasmvm_muslc.x86_64.a"; - # hash = "sha256-LEl7UkbHIXpwxEfFARfH+wmQnsI+bkFRpN4+XynbgTQ="; - # }; - # dontUnpack = true; - # buildPhase = '' - # mkdir -p $out/lib/ - # cp $src $out/lib/libwasmvm.x86_64.a - # ''; - # }; if pkgs.stdenv.isLinux then { # Statically link if we're on linux @@ -54,15 +42,6 @@ _: { "-extldflags '-z noexecstack -static -L${goPkgs.musl}/lib -L${libwasmvm}/lib'" ]; } - # else if pkgs.stdenv.isDarwin then { - # # Dynamically link if we're on darwin by wrapping the program - # # such that the DYLD_LIBRARY_PATH includes libwasmvm - # buildInputs = [ pkgs.makeWrapper libwasmvm ]; - # postFixup = '' - # wrapProgram $out/bin/wasmd \ - # --set DYLD_LIBRARY_PATH ${(pkgs.lib.makeLibraryPath [ libwasmvm ])}; - # ''; - # } else else { } ) diff --git a/tools/libwasmvm/libwasmvm.nix b/tools/libwasmvm/libwasmvm.nix index cf43759281..723cbaaeb9 100644 --- a/tools/libwasmvm/libwasmvm.nix +++ b/tools/libwasmvm/libwasmvm.nix @@ -121,10 +121,7 @@ in { packages.libwasmvm = mkLibwasmvm_v1 inputs.wasmvm; - packages.libwasmvm-1_5_0 = mkLibwasmvm_v1 inputs.wasmvm-1_5_0; - packages.libwasmvm-2_0_0 = mkLibwasmvm_v1 inputs.wasmvm-2_0_0; packages.libwasmvm-2_1_2 = mkLibwasmvm_v2 inputs.wasmvm-2_1_2; packages.libwasmvm-2_1_3 = mkLibwasmvm_v2 inputs.wasmvm-2_1_3; - packages.libwasmvm-2_2_0 = mkLibwasmvm_v2 inputs.wasmvm-2_2_0; }; }