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

24 lines
566 B
Nix

{ lib
, fetchCrate
, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "twiggy";
version = "0.7.0";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-NbtS7A5Zl8634Q3xyjVzNraNszjt1uIXqmctArfnqkk=";
};
cargoSha256 = "sha256-94pfhVZ0CNMn+lCl5O+wOyE+D6fVXbH4NAPx92nMNbM=";
meta = with lib; {
homepage = "https://rustwasm.github.io/twiggy/";
description = "A code size profiler for Wasm";
mainProgram = "twiggy";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ lucperkins ];
};
}