libft/flake.nix
Raphael e1625857f2
build(nix): adding nix flake
- Allow to all people on nix package manager to have the same env
2025-09-05 16:51:28 +02:00

24 lines
699 B
Nix

{
description = "Flake for 42 C";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
c_formatter_42.url = "github:maix0/c_formatter_42-flake";
};
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.valgrind
pkgs.tree
] ++ (if pkgs.stdenv.isLinux then [ pkgs.valgrind ] else [ ]);
};
});
}