nixpkgs/pkgs/development/tools/misc/wasmer-pack/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
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.
2024-03-19 03:14:51 +01:00

39 lines
943 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "wasmer-pack";
version = "0.7.1";
src = fetchFromGitHub {
owner = "wasmerio";
repo = "wasmer-pack";
rev = "v${version}";
hash = "sha256-+wqgYkdkuhPFkJBdQLnUKAGmUfGBU9mBfMRNBFmiT4E=";
};
cargoHash = "sha256-nyhjwEZyT8IEb0pTbou/EtN47gehge3fUCQVPs2TkIY=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
cargoBuildFlags = [ "-p=wasmer-pack-cli" ];
# requires internet access
doCheck = false;
meta = with lib; {
description = "Import your WebAssembly code just like any other dependency";
mainProgram = "wasmer-pack";
homepage = "https://github.com/wasmerio/wasmer-pack";
changelog = "https://github.com/wasmerio/wasmer-pack/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}