-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
52 lines (51 loc) · 1.22 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-24.11";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
rustacean = {
url = "github:mrcjkb/rustaceanvim";
};
};
outputs =
{ self
, nixpkgs
, rust-overlay
, rustacean
, ...
} @ inputs:
let
system = "x86_64-linux";
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
in
{
devShells.${system}.default = pkgs.mkShell rec {
buildInputs = with pkgs; [
pre-commit
libxkbcommon
wayland
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
pkg-config
openssl
glib-networking
gdk-pixbuf
cairo
pango
gtk3
libsoup_3
webkitgtk_4_1
rustacean.packages.${system}.codelldb
rust-analyzer
rust-bin.stable.latest.default
];
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${builtins.toString (pkgs.lib.makeLibraryPath buildInputs)}";
GIO_MODULE_DIR="${pkgs.glib-networking}/lib/gio/modules/";
};
};
}