mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
Merge pull request #44968 from Ekleog/wasm-gc-init
wasm-gc: init at 0.1.6
This commit is contained in:
commit
4445414073
25
pkgs/development/interpreters/wasm-gc/default.nix
Normal file
25
pkgs/development/interpreters/wasm-gc/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ stdenv, fetchFromGitHub, rustPlatform }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
name = "wasm-gc-${version}";
|
||||
version = "0.1.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alexcrichton";
|
||||
repo = "wasm-gc";
|
||||
rev = version;
|
||||
sha256 = "1lc30xxqp3vv1r269xzznh2lf2dzdq89bi5f1vmqjw4yc3xmawm7";
|
||||
};
|
||||
|
||||
cargoPatches = [ ./fix-build.patch ]; # Cargo.lock is not up-to-date
|
||||
|
||||
cargoSha256 = "1jvk9n324p3x3j6q6x0p5diig3b5c683k74cfflff25i7gsmmvc7";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "gc-sections for wasm";
|
||||
homepage = "https://github.com/alexcrichton/wasm-gc";
|
||||
maintainers = with maintainers; [ ekleog ];
|
||||
platforms = platforms.all;
|
||||
license = with licenses; [ mit asl20 ];
|
||||
};
|
||||
}
|
34
pkgs/development/interpreters/wasm-gc/fix-build.patch
Normal file
34
pkgs/development/interpreters/wasm-gc/fix-build.patch
Normal file
@ -0,0 +1,34 @@
|
||||
diff --git a/Cargo.lock b/Cargo.lock
|
||||
index 923ed91..71f17c8 100644
|
||||
--- a/Cargo.lock
|
||||
+++ b/Cargo.lock
|
||||
@@ -212,16 +212,16 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wasm-gc"
|
||||
-version = "0.1.1"
|
||||
+version = "0.1.6"
|
||||
dependencies = [
|
||||
"env_logger 0.5.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"getopts 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
- "wasm-gc-api 0.1.5",
|
||||
+ "wasm-gc-api 0.1.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "wasm-gc-api"
|
||||
-version = "0.1.5"
|
||||
+version = "0.1.6"
|
||||
dependencies = [
|
||||
"log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"parity-wasm 0.31.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
@@ -234,7 +234,7 @@ version = "0.1.0"
|
||||
dependencies = [
|
||||
"cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"wasm-bindgen 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
- "wasm-gc-api 0.1.5",
|
||||
+ "wasm-gc-api 0.1.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -7809,6 +7809,8 @@ with pkgs;
|
||||
|
||||
wasm = callPackage ../development/interpreters/wasm { };
|
||||
|
||||
wasm-gc = callPackage ../development/interpreters/wasm-gc { };
|
||||
|
||||
|
||||
### DEVELOPMENT / MISC
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user