wasmtime: move to by-name, cleanup (#399424)

Changed files
+17 -11
pkgs
by-name
wa
wasmtime
top-level
+17 -7
pkgs/development/interpreters/wasmtime/default.nix pkgs/by-name/wa/wasmtime/package.nix
···
{
lib,
rustPlatform,
cmake,
-
fetchFromGitHub,
-
Security,
-
stdenv,
}:
-
let
-
inherit (stdenv.targetPlatform.rust) cargoShortTarget;
-
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "wasmtime";
version = "31.0.0";
···
"dev"
];
-
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
nativeBuildInputs = [ cmake ];
doCheck =
···
!isAarch64;
postInstall =
''
# move libs from out to dev
install -d -m 0755 $dev/lib
···
$dev/lib/libwasmtime.dylib \
$dev/lib/libwasmtime.dylib
'';
meta = {
description = "Standalone JIT-style runtime for WebAssembly, using Cranelift";
···
{
lib,
+
stdenv,
rustPlatform,
+
fetchFromGitHub,
cmake,
+
versionCheckHook,
+
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "wasmtime";
version = "31.0.0";
···
"dev"
];
nativeBuildInputs = [ cmake ];
doCheck =
···
!isAarch64;
postInstall =
+
let
+
inherit (stdenv.targetPlatform.rust) cargoShortTarget;
+
in
''
# move libs from out to dev
install -d -m 0755 $dev/lib
···
$dev/lib/libwasmtime.dylib \
$dev/lib/libwasmtime.dylib
'';
+
+
nativeInstallCheckInputs = [
+
versionCheckHook
+
];
+
versionCheckProgramArg = "--version";
+
doInstallCheck = true;
+
+
passthru = {
+
updateScript = nix-update-script { };
+
};
meta = {
description = "Standalone JIT-style runtime for WebAssembly, using Cranelift";
-4
pkgs/top-level/all-packages.nix
···
nanoizeNewlib = true;
};
-
wasmtime = callPackage ../development/interpreters/wasmtime {
-
inherit (darwin.apple_sdk.frameworks) Security;
-
};
-
wfuzz = with python3Packages; toPythonApplication wfuzz;
kodelife = callPackage ../applications/graphics/kodelife {
···
nanoizeNewlib = true;
};
wfuzz = with python3Packages; toPythonApplication wfuzz;
kodelife = callPackage ../applications/graphics/kodelife {