mirror of
https://github.com/danbulant/rshell
synced 2026-05-24 12:33:57 +00:00
attempt to make it build correctly; failing currently
This commit is contained in:
parent
76b1ddb9ca
commit
7a2630310f
2 changed files with 63 additions and 1 deletions
28
flake.nix
28
flake.nix
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue