cargo-tauri: refactor
Specifically: - Tighten dependencies by only listing what's needed to build - Better sorting things - Adding `meta.changelog`
This commit is contained in:
@@ -3,19 +3,14 @@
|
|||||||
stdenv,
|
stdenv,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
darwin,
|
||||||
|
gtk3,
|
||||||
|
libsoup,
|
||||||
openssl,
|
openssl,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
glibc,
|
|
||||||
libsoup,
|
|
||||||
cairo,
|
|
||||||
gtk3,
|
|
||||||
webkitgtk,
|
webkitgtk,
|
||||||
darwin,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
|
|
||||||
in
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "tauri";
|
pname = "tauri";
|
||||||
version = "1.7.1-unstable-2024-08-16";
|
version = "1.7.1-unstable-2024-08-16";
|
||||||
@@ -33,26 +28,28 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoHash = "sha256-VXg/dAhwPTSrLwJm8HNzAi/sVF9RqgpHIF3PZe1LjSA=";
|
cargoHash = "sha256-VXg/dAhwPTSrLwJm8HNzAi/sVF9RqgpHIF3PZe1LjSA=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ openssl ]
|
[ openssl ]
|
||||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
glibc
|
|
||||||
libsoup
|
|
||||||
cairo
|
|
||||||
gtk3
|
gtk3
|
||||||
|
libsoup
|
||||||
webkitgtk
|
webkitgtk
|
||||||
]
|
]
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
++ lib.optionals stdenv.hostPlatform.isDarwin (
|
||||||
CoreServices
|
with darwin.apple_sdk.frameworks;
|
||||||
Security
|
[
|
||||||
SystemConfiguration
|
CoreServices
|
||||||
];
|
Security
|
||||||
nativeBuildInputs = [ pkg-config ];
|
SystemConfiguration
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Build smaller, faster, and more secure desktop applications with a web frontend";
|
description = "Build smaller, faster, and more secure desktop applications with a web frontend";
|
||||||
mainProgram = "cargo-tauri";
|
|
||||||
homepage = "https://tauri.app/";
|
homepage = "https://tauri.app/";
|
||||||
|
changelog = "https://github.com/tauri-apps/tauri/releases/tag/tauri-v${version}";
|
||||||
license = with lib.licenses; [
|
license = with lib.licenses; [
|
||||||
asl20 # or
|
asl20 # or
|
||||||
mit
|
mit
|
||||||
@@ -61,5 +58,6 @@ rustPlatform.buildRustPackage rec {
|
|||||||
dit7ya
|
dit7ya
|
||||||
happysalada
|
happysalada
|
||||||
];
|
];
|
||||||
|
mainProgram = "cargo-tauri";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user