about summary refs log tree commit diff
path: root/pkgs/by-name/tw/twiggy/package.nix
blob: b4e77337f0a47082054aa5ecd8eb5a276e39bc55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib
, fetchCrate
, rustPlatform }:

rustPlatform.buildRustPackage rec {
  pname = "twiggy";
  version = "0.7.0";

  src = fetchCrate {
    inherit pname version;
    hash = "sha256-NbtS7A5Zl8634Q3xyjVzNraNszjt1uIXqmctArfnqkk=";
  };

  cargoSha256 = "sha256-94pfhVZ0CNMn+lCl5O+wOyE+D6fVXbH4NAPx92nMNbM=";

  meta = with lib; {
    homepage = "https://rustwasm.github.io/twiggy/";
    description = "Code size profiler for Wasm";
    mainProgram = "twiggy";
    license = with licenses; [ asl20 mit ];
    maintainers = with maintainers; [ lucperkins ];
  };
}