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