Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Tauri (native desktop app) #19

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 18 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,32 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};


outputs = { nixpkgs, flake-utils, ... }:
outputs = { nixpkgs, flake-utils, rust-overlay, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };


in
{
devShells.default = pkgs.mkShell {
name = "eccp";
buildInputs = with pkgs; [ nodejs ];
buildInputs = with pkgs;
[ rust-bin.stable.latest.default nodejs ]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk; [
frameworks.Cocoa
frameworks.Foundation
frameworks.WebKit
]);
};
}
);
Expand Down
Loading