dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / by-name / ca / cargo-tauri / package.nix
blob07832381f70d0cf0899254ba850b66dd032f0238
2   lib,
3   stdenv,
4   callPackage,
5   rustPlatform,
6   fetchFromGitHub,
7   cargo-tauri,
8   gtk4,
9   nix-update-script,
10   openssl,
11   pkg-config,
12   webkitgtk_4_1,
15 rustPlatform.buildRustPackage rec {
16   pname = "tauri";
17   version = "2.1.1";
19   src = fetchFromGitHub {
20     owner = "tauri-apps";
21     repo = "tauri";
22     tag = "tauri-v${version}";
23     hash = "sha256-HPmViOowP1xAjDJ89YS0BTjNnKI1P0L777ywkqAhhc4=";
24   };
26   cargoLock = {
27     lockFile = ./Cargo.lock;
28     outputHashes = {
29       "schemars_derive-0.8.21" = "sha256-AmxBKZXm2Eb+w8/hLQWTol5f22uP8UqaIh+LVLbS20g=";
30     };
31   };
33   nativeBuildInputs = [ pkg-config ];
35   buildInputs =
36     [ openssl ]
37     ++ lib.optionals stdenv.hostPlatform.isLinux [
38       gtk4
39       webkitgtk_4_1
40     ];
42   cargoBuildFlags = [ "--package tauri-cli" ];
43   cargoTestFlags = cargoBuildFlags;
45   passthru = {
46     # See ./doc/hooks/tauri.section.md
47     hook = callPackage ./hook.nix { };
49     tests = {
50       hook = callPackage ./test-app.nix { };
51     };
53     updateScript = nix-update-script {
54       extraArgs = [
55         "--version-regex"
56         "tauri-v(.*)"
57       ];
58     };
59   };
61   meta = {
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; [
66       asl20 # or
67       mit
68     ];
69     maintainers = with lib.maintainers; [
70       dit7ya
71       getchoo
72       happysalada
73     ];
74     mainProgram = "cargo-tauri";
75   };