attempt to make it build correctly; failing currently

This commit is contained in:
Daniel Bulant 2024-10-08 22:09:46 +02:00
parent 76b1ddb9ca
commit 7a2630310f
No known key found for this signature in database
2 changed files with 63 additions and 1 deletions

View file

@ -59,6 +59,34 @@
CARGO_ENCODED_RUSTFLAGS = " "; CARGO_ENCODED_RUSTFLAGS = " ";
}; };
}; };
rshell = attrs: rec {
buildInputs = with pkgs; [
openssl
pkg-config
cmake
zlib
# common glutin
libxkbcommon
libGL
dbus
# winit wayland
wayland
# winit x11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
];
nativeBuildInputs = with pkgs; [
pkg-config
fontconfig
];
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
RUST_SRC_PATH = pkgs.rust.packages.stable.rustPlatform.rustLibSrc;
};
}; };
}; };
in in

View file

@ -13,12 +13,46 @@
# "${inputs.devshell}/extra/language/rust.nix" # "${inputs.devshell}/extra/language/rust.nix"
]; ];
devshell = {
name = "rshell devshell";
packages = with pkgs; [
libxkbcommon
libGL
dbus
wayland
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
openssl
pkg-config
];
};
commands = with pkgs; [ commands = with pkgs; [
{ package = rust-toolchain; category = "rust"; } { package = rust-toolchain; category = "rust"; }
]; ];
language.c = { language.c = {
libraries = lib.optional pkgs.stdenv.isDarwin pkgs.libiconv; libraries =
(with pkgs; [
libxkbcommon
libGL
dbus
wayland
xorg.libXcursor
xorg.libXrandr
xorg.libXi
xorg.libX11
openssl
pkg-config
]) ++
(lib.optional pkgs.stdenv.isDarwin pkgs.libiconv);
}; };
}; };
}; };