libft/flake.nix
Raphael 4e15449d12
build(nix): c_formatter_42 with the correction given
- The flake wasn't made for macos (arm), so I made a pull requests to
patch that and was merged thanks to @maix0 for it's reactivity
2025-09-05 17:35:51 +02:00

23 lines
671 B
Nix

{
description = "Flake for 42 C";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
c_formatter_42.url = "github:maix-flake/c_formatter_42";
};
outputs = { self, nixpkgs, flake-utils, c_formatter_42 }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
devShell = pkgs.mkShell {
packages = [
c_formatter_42.packages.${system}.default
pkgs.clang
pkgs.clang-tools
pkgs.fastmod
pkgs.norminette
pkgs.tree
] ++ (if pkgs.stdenv.isLinux then [ pkgs.valgrind ] else [ ]);
};
});
}