12 wasm-bindgen-cli_0_2_93,
17 rustPlatform.buildRustPackage rec {
21 src = fetchFromGitHub {
22 owner = "stalwartlabs";
25 hash = "sha256-0/XiYFQDqcpRS9DXPyKQwoifnEd2YxFiyDbV12zd2RU=";
28 npmDeps = fetchNpmDeps {
30 name = "${pname}-npm-deps";
31 hash = "sha256-na1HEueX8w7kuDp8LEtJ0nD1Yv39cyk6sEMpS1zix2s=";
34 useFetchCargoVendor = true;
35 cargoHash = "sha256-rXpyPLe28YgUkDJNBEA0HGSpmcHOik9em1uwLuYAU8I=";
38 # Using local tailwindcss for compilation
39 substituteInPlace Trunk.toml --replace-fail "npx tailwindcss" "tailwindcss"
44 llvmPackages.bintools-unwrapped
46 npmHooks.npmConfigHook
49 # needs to match with wasm-bindgen version in upstreams Cargo.lock
50 wasm-bindgen-cli_0_2_93
55 NODE_PATH = "$npmDeps";
58 trunk build --offline --frozen --release
64 zip -r $out/webadmin.zip *
68 updateScript = nix-update-script { };
72 description = "Secure & modern all-in-one mail server Stalwart (webadmin module)";
73 homepage = "https://github.com/stalwartlabs/webadmin";
74 changelog = "https://github.com/stalwartlabs/webadmin/blob/${src.tag}/CHANGELOG.md";
75 license = lib.licenses.agpl3Only;
76 maintainers = with lib.maintainers; [ onny ];