-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
44 lines (43 loc) · 973 Bytes
/
Copy pathflake.nix
File metadata and controls
44 lines (43 loc) · 973 Bytes
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
nixpkgs,
rust-overlay,
...
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};
rust-toolchain = pkgs.rust-bin.nightly.latest.default.override {
extensions = [ "rust-src" ];
targets = [
"x86_64-unknown-linux-gnu"
];
};
in
{
devShells."${system}".default = pkgs.mkShell {
buildInputs = with pkgs; [
rust-toolchain
rustPlatform.bindgenHook
cmake
pkg-config
openssl
libclang
fcitx5
libxkbcommon
];
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
};
};
}