mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
Tauri (local working) (#128)
* 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>
This commit is contained in:
21
flake.nix
21
flake.nix
@@ -1,6 +1,7 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
# TODO: switch to nixpkgs-unstable when 69f3b4defe91949a97ca751ada931525d391e0fc is there
|
||||
nixpkgs.url = "github:nixos/nixpkgs/staging";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
};
|
||||
outputs =
|
||||
@@ -8,13 +9,21 @@
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = nixpkgs.lib.platforms.all;
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
cargo-tauri = pkgs.callPackage ./nix/cargo-tauri.nix { };
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.bun
|
||||
pkgs.nodejs
|
||||
];
|
||||
packages =
|
||||
[
|
||||
pkgs.bun
|
||||
pkgs.nodejs
|
||||
cargo-tauri
|
||||
]
|
||||
++ lib.optionals pkgs.stdenv.isDarwin (
|
||||
[ pkgs.libiconv ] ++ (with pkgs.darwin.apple_sdk.frameworks; [ WebKit ])
|
||||
);
|
||||
};
|
||||
# TODO: Package LA using Nix
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user