mirror of
https://github.com/danbulant/rshell
synced 2026-05-19 04:18:33 +00:00
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ inputs, lib, ... }: {
|
|
imports = [
|
|
inputs.devshell.flakeModule
|
|
];
|
|
|
|
config.perSystem =
|
|
{ pkgs
|
|
, ...
|
|
}: {
|
|
config.devshells.default = {
|
|
imports = [
|
|
"${inputs.devshell}/extra/language/c.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; [
|
|
{ package = rust-toolchain; category = "rust"; }
|
|
];
|
|
|
|
language.c = {
|
|
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);
|
|
};
|
|
};
|
|
};
|
|
}
|