nixpkgs/pkgs/development/tools/wasmserve/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

27 lines
557 B
Nix

{ buildGoModule
, lib
, fetchFromGitHub
}:
buildGoModule rec {
pname = "wasmserve";
version = "1.0.0";
src = fetchFromGitHub {
owner = "hajimehoshi";
repo = "wasmserve";
rev = "v${version}";
hash = "sha256-KlCbUre6yIorE1ZM++Rto8vgwVGsC1wZj1xCd3AwQy0=";
};
vendorHash = null;
meta = with lib; {
description = "An HTTP server for testing Wasm";
mainProgram = "wasmserve";
homepage = "https://github.com/hajimehoshi/wasmserve";
license = licenses.asl20;
maintainers = with maintainers; [ kirillrdy ];
};
}