nixpkgs/pkgs/development/tools/wasm-pack/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
872 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
2019-08-31 11:41:23 +00:00
pname = "wasm-pack";
2023-06-27 22:48:12 +00:00
version = "0.12.1";
src = fetchFromGitHub {
owner = "rustwasm";
repo = "wasm-pack";
rev = "refs/tags/v${version}";
2023-06-27 22:48:12 +00:00
hash = "sha256-L4mCgUPG4cgTUpCoaIUOTONBOggXn5vMyPKj48B3MMk=";
};
2023-06-27 22:48:12 +00:00
cargoHash = "sha256-mqQRQXaUW6mreE7UUEA0zhhaaGGKLRUngH9QLxcaIdY=";
buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
2021-09-20 19:38:53 +00:00
2020-02-11 10:34:23 +00:00
# Most tests rely on external resources and build artifacts.
# Disabling check here to work with build sandboxing.
doCheck = false;
meta = with lib; {
description = "A utility that builds rust-generated WebAssembly package";
homepage = "https://github.com/rustwasm/wasm-pack";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = [ maintainers.dhkl ];
};
}