Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
82 lines
1.9 KiB
Nix
82 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
bzip2,
|
|
callPackage,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
pkg-config,
|
|
testers,
|
|
xz,
|
|
zstd,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "tauri";
|
|
version = "2.8.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tauri-apps";
|
|
repo = "tauri";
|
|
tag = "tauri-cli-v${finalAttrs.version}";
|
|
hash = "sha256-fp/ODsbZTQdMkkRu9QqTQfavq0RPfSzZm1l4sE1hacc=";
|
|
};
|
|
|
|
cargoHash = "sha256-l1IF9R+KeXAjs8Dy59mZNOCX0eoskotBPbltKU3nHQ8=";
|
|
|
|
nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isLinux) [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs =
|
|
# Required for tauri-macos-sign and RPM support in tauri-bundler
|
|
lib.optionals (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isLinux) [
|
|
bzip2
|
|
xz
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
zstd
|
|
];
|
|
|
|
cargoBuildFlags = [ "--package tauri-cli" ];
|
|
cargoTestFlags = finalAttrs.cargoBuildFlags;
|
|
|
|
env = lib.optionalAttrs stdenv.hostPlatform.isLinux {
|
|
ZSTD_SYS_USE_PKG_CONFIG = true;
|
|
};
|
|
|
|
passthru = {
|
|
# See ./doc/hooks/tauri.section.md
|
|
hook = callPackage ./hook.nix { cargo-tauri = finalAttrs.finalPackage; };
|
|
|
|
tests = {
|
|
hook = callPackage ./test-app.nix { cargo-tauri = finalAttrs.finalPackage; };
|
|
version = testers.testVersion { package = finalAttrs.finalPackage; };
|
|
};
|
|
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"tauri-cli-v(.*)"
|
|
];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Build smaller, faster, and more secure desktop applications with a web frontend";
|
|
homepage = "https://tauri.app/";
|
|
changelog = "https://github.com/tauri-apps/tauri/releases/tag/tauri-cli-v${finalAttrs.version}";
|
|
license = with lib.licenses; [
|
|
asl20 # or
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
dit7ya
|
|
getchoo
|
|
happysalada
|
|
];
|
|
mainProgram = "cargo-tauri";
|
|
};
|
|
})
|