mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, pkg-config
|
|
, libressl
|
|
, curl
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wasm-pack";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rustwasm";
|
|
repo = "wasm-pack";
|
|
rev = "v${version}";
|
|
sha256 = "1rqyfg6ajxxyfx87ar25nf5ck9hd0p12qgv98dicniqag8l4rvsr";
|
|
};
|
|
|
|
cargoSha256 = "0fw04hgxxqsbp1pylp32yd087r9bb8bpa05v90qdshkgp6znfl9s";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
# LibreSSL works around segfault issues caused by OpenSSL being unable to
|
|
# gracefully exit while doing work.
|
|
# See: https://github.com/rustwasm/wasm-pack/issues/650
|
|
libressl
|
|
] ++ stdenv.lib.optionals stdenv.isDarwin [ curl Security ];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|