feat: nix flake support

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-04-30 21:24:41 -03:00
parent 9a702969bc
commit 341b8ec0b0
7 changed files with 532 additions and 124 deletions

View File

@@ -0,0 +1,25 @@
{ 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"
];
commands = with pkgs; [
{ package = rust-toolchain; category = "rust"; }
];
language.c = {
libraries = lib.optional pkgs.stdenv.isDarwin pkgs.libiconv;
};
};
};
}