mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
29 lines
633 B
Nix
29 lines
633 B
Nix
{ lib
|
|
, llvmPackages
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
llvmPackages.stdenv.mkDerivation (finalAttrs: {
|
|
pname = "wavm";
|
|
version = "2022-05-14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "WAVM";
|
|
repo = "WAVM";
|
|
rev = "nightly/${finalAttrs.version}";
|
|
hash = "sha256-SHz+oOOkwvVZucJYFSyZc3MnOAy1VatspmZmOAXYAWA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake llvmPackages.llvm ];
|
|
|
|
meta = with lib; {
|
|
description = "WebAssembly Virtual Machine";
|
|
mainProgram = "wavm";
|
|
homepage = "https://wavm.github.io";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ereslibre ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|