-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
57 lines (52 loc) · 1.44 KB
/
flake.nix
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
overlays = [ rust-overlay.overlays.default ];
};
packages = with pkgs; [
curl
protobuf
wget
rustup
wayland
pkg-config
dbus
openssl
fuse3
ninja
glib
gtk3
clang
libclang
vulkan-headers
vulkan-loader
sqlite
libsoup
sass
librsvg
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "rust-analyzer" "rustc" ];
})
];
in {
devShell = pkgs.mkShell {
buildInputs = packages;
shellHook = ''
export PATH="$PATH":"$HOME/.cargo/bin"
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath packages}:$(pwd)/build/linux/x64/debug/bundle/lib:$(pwd)/build/linux/x64/release/bundle/lib:$(pwd)/build/linux/x64/profile/bundle/lib:$LD_LIBRARY_PATH"
'';
};
});
}