mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
a36b0ec048
Upstream does not reliably update their crate versions for each tag
77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
callPackage,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
cargo-tauri,
|
|
gtk4,
|
|
nix-update-script,
|
|
openssl,
|
|
pkg-config,
|
|
webkitgtk_4_1,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tauri";
|
|
version = "2.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tauri-apps";
|
|
repo = "tauri";
|
|
rev = "refs/tags/tauri-v${version}";
|
|
hash = "sha256-HPmViOowP1xAjDJ89YS0BTjNnKI1P0L777ywkqAhhc4=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"schemars_derive-0.8.21" = "sha256-AmxBKZXm2Eb+w8/hLQWTol5f22uP8UqaIh+LVLbS20g=";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs =
|
|
[ openssl ]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
gtk4
|
|
webkitgtk_4_1
|
|
];
|
|
|
|
cargoBuildFlags = [ "--package tauri-cli" ];
|
|
cargoTestFlags = cargoBuildFlags;
|
|
|
|
passthru = {
|
|
# See ./doc/hooks/tauri.section.md
|
|
hook = callPackage ./hook.nix { };
|
|
|
|
tests = {
|
|
hook = callPackage ./test-app.nix { };
|
|
};
|
|
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"tauri-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-v${version}";
|
|
license = with lib.licenses; [
|
|
asl20 # or
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
dit7ya
|
|
getchoo
|
|
happysalada
|
|
];
|
|
mainProgram = "cargo-tauri";
|
|
};
|
|
}
|