core(nix/flake): adding flake for developpement on nixos
This commit is contained in:
parent
3da275fc74
commit
51d05f5ba4
1 changed files with 23 additions and 0 deletions
23
flake.nix
Normal file
23
flake.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
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 [ ]);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue