15 rustPlatform.buildRustPackage rec {
19 src = fetchFromGitHub {
22 tag = "tauri-v${version}";
23 hash = "sha256-HPmViOowP1xAjDJ89YS0BTjNnKI1P0L777ywkqAhhc4=";
27 lockFile = ./Cargo.lock;
29 "schemars_derive-0.8.21" = "sha256-AmxBKZXm2Eb+w8/hLQWTol5f22uP8UqaIh+LVLbS20g=";
33 nativeBuildInputs = [ pkg-config ];
37 ++ lib.optionals stdenv.hostPlatform.isLinux [
42 cargoBuildFlags = [ "--package tauri-cli" ];
43 cargoTestFlags = cargoBuildFlags;
46 # See ./doc/hooks/tauri.section.md
47 hook = callPackage ./hook.nix { };
50 hook = callPackage ./test-app.nix { };
53 updateScript = nix-update-script {
62 description = "Build smaller, faster, and more secure desktop applications with a web frontend";
63 homepage = "https://tauri.app/";
64 changelog = "https://github.com/tauri-apps/tauri/releases/tag/tauri-v${version}";
65 license = with lib.licenses; [
69 maintainers = with lib.maintainers; [
74 mainProgram = "cargo-tauri";