mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
wasmedge: add version test
This commit is contained in:
parent
47f76bde14
commit
0676d92be8
1 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue