resheet/module.nix

26 lines
667 B
Nix
Raw Permalink Normal View History

2024-09-14 00:34:31 -04:00
{
perSystem = { pkgs, config, self', ... }:
let
cfg = config.nci.outputs.resheet;
in {
nci.toolchainConfig = ./rust-toolchain.toml;
nci.projects.resheet.path = ./.;
nci.crates.resheet.runtimeLibs = with pkgs; [
libGL
wayland
libxkbcommon
fontconfig
];
# Exports
checks.build = self'.packages.resheet;
packages.default = self'.packages.resheet;
packages.resheet = cfg.packages.release;
devShells.default = cfg.devShell.overrideAttrs (prev: {
buildInputs = prev.buildInputs ++
[ pkgs.rust-analyzer pkgs.slint-lsp ];
});
};
}