-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
74 lines (64 loc) · 1.65 KB
/
flake.nix
File metadata and controls
74 lines (64 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
description = "Multiconnect Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
system = system;
config.allowUnfree = true;
};
buildInputs = with pkgs; [
rustup
rust-analyzer
cargo
nodejs_23
yarn
protobuf_27
# openssl_3
lsb-release
nixfmt-rfc-style
# Tokio
tokio-console
# Tauri
cargo-tauri
pkg-config
libsoup_3
webkitgtk_4_1
gtk3
gtk3-x11
adwaita-icon-theme
# openssl
librsvg
gsettings-desktop-schemas
glib
# Android
android-studio
];
in
{
packages = {
# TODO
};
devShell = pkgs.mkShell {
# TODO: Clean up this when flake build works
nativeBuildInputs = buildInputs;
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
JAVA_HOME = "${pkgs.jdk21.home}";
GSETTINGS_SCHEMA_DIR = "${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}/glib-2.0/schemas";
RUSTFLAGS = "--cfg tokio_unstable"; # TODO: Don't put this here
WEBKIT_DISABLE_COMPOSITING_MODE = 1; # Fix `Failed to get GBM device`
GDK_BACKEND = "x11"; # https://github.com/tauri-apps/tauri/issues/12361
};
}
);
}