-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathflake.nix
More file actions
82 lines (73 loc) · 1.88 KB
/
flake.nix
File metadata and controls
82 lines (73 loc) · 1.88 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
75
76
77
78
79
80
81
82
# SPDX-FileCopyrightText: 2024 Foundation Devices Inc.
#
# SPDX-License-Identifier: MIT
{
description = "tor - Flutter plugin for managing a Tor proxy via arti";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
flake-utils,
rust-overlay,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
rustToolchain = pkgs.rust-bin.stable."1.87.0".default;
in
{
devShells.default = pkgs.mkShell {
buildInputs =
with pkgs;
[
# Dart / Flutter
dart
flutter
# Rust (pinned to rust-toolchain)
rustToolchain
# Native build tools
cmake
ninja
pkg-config
# For ffigen (libclang)
libclang
llvmPackages.libclang
# Just (task runner)
just
# Useful for Rust development
cargo-ndk
]
++ pkgs.lib.optionals pkgs.stdenv.isLinux [
# Linux desktop build deps (GTK runner)
gtk3
pcre2
util-linux
libselinux
libsepol
libthai
libdatrie
libxkbcommon
libxdmcp
lerc
libdeflate
at-spi2-core
dbus
libepoxy
];
shellHook = ''
export LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib"
'';
};
}
);
}