26 lines
667 B
Nix
26 lines
667 B
Nix
|
{
|
||
|
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 ];
|
||
|
});
|
||
|
};
|
||
|
}
|