wasmedge: add version test

This commit is contained in:
figsoda 2023-05-23 23:08:27 -04:00
parent 47f76bde14
commit 0676d92be8

View file

@ -7,19 +7,20 @@
, libxml2
, libffi
, Foundation
, testers
}:
let
stdenv = llvmPackages.stdenv;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "wasmedge";
version = "0.12.1";
src = fetchFromGitHub {
owner = "WasmEdge";
repo = "WasmEdge";
rev = version;
rev = finalAttrs.version;
sha256 = "sha256-pBaa90jvR4tLgVOBZEJOEUY2+VnBmdSN5kkJMB8wdUA=";
};
@ -49,6 +50,12 @@ stdenv.mkDerivation rec {
echo -n $version > VERSION
'';
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
};
};
meta = with lib; {
homepage = "https://wasmedge.org/";
license = with licenses; [ asl20 ];
@ -57,4 +64,4 @@ stdenv.mkDerivation rec {
# error: no member named 'utimensat' in the global namespace
broken = stdenv.isDarwin && stdenv.isx86_64;
};
}
})