mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
* chore(nix): add `cargo-tauri` * chore(rust): add rustfmt config * feat: add tauri app * fix(config): tauri and web config nextjs * fix: default value * fix: force graph * fix: undefined me * fix: undefined me in page detail * fix: remove title from search component * fix: package version * chore: next config * feat: random btn for go to auth * fix the config * feat: tauri --------- Co-authored-by: Alice Carroll <git@alice-carroll.pet> Co-authored-by: Aslam H <iupin5212@gmail.com>
68 lines
1.6 KiB
Nix
68 lines
1.6 KiB
Nix
# TODO: use upstream cargo-tauri when it is updated to v2 in nixpkgs
|
|
# copied from nixpkgs to change the version and hashes
|
|
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
openssl,
|
|
pkg-config,
|
|
glibc,
|
|
libsoup,
|
|
cairo,
|
|
gtk3,
|
|
webkitgtk,
|
|
darwin,
|
|
}:
|
|
|
|
let
|
|
inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
|
|
in
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tauri";
|
|
version = "2.0.0-rc.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tauri-apps";
|
|
repo = pname;
|
|
rev = "tauri-cli-v${version}";
|
|
hash = "sha256-y8Y9En1r1HU9sZcYHFhB+botVQBZfzqoDrlgp98ltrY=";
|
|
};
|
|
|
|
# Manually specify the sourceRoot since this crate depends on other crates in the workspace. Relevant info at
|
|
# https://discourse.nixos.org/t/difficulty-using-buildrustpackage-with-a-src-containing-multiple-cargo-workspaces/10202
|
|
sourceRoot = "${src.name}/tooling/cli";
|
|
|
|
cargoHash = "sha256-u1JcLuP9KFCIb7Wkk3u/hoV/bBarEvFfqpGXVyXSvpo=";
|
|
|
|
buildInputs =
|
|
[ openssl ]
|
|
++ lib.optionals stdenv.isLinux [
|
|
glibc
|
|
libsoup
|
|
cairo
|
|
gtk3
|
|
webkitgtk
|
|
]
|
|
++ lib.optionals stdenv.isDarwin [
|
|
CoreServices
|
|
Security
|
|
SystemConfiguration
|
|
];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
meta = with lib; {
|
|
description = "Build smaller, faster, and more secure desktop applications with a web frontend";
|
|
mainProgram = "cargo-tauri";
|
|
homepage = "https://tauri.app/";
|
|
license = with licenses; [
|
|
asl20 # or
|
|
mit
|
|
];
|
|
maintainers = with maintainers; [
|
|
dit7ya
|
|
happysalada
|
|
];
|
|
};
|
|
}
|