🎉」 init: Started ft_ping :D

This commit is contained in:
2025-08-11 12:09:46 +02:00
parent ff03f8e43a
commit 3625f94c03
5 changed files with 126 additions and 0 deletions

47
flake.nix Normal file
View File

@ -0,0 +1,47 @@
{
description = "A devshell flake for my ft_ping project";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs =
{
nixpkgs,
self,
}:
let
supportedSystems = [ "x86_64-linux" ];
forEachSupportedSystem =
f:
nixpkgs.lib.genAttrs supportedSystems (
system:
f {
pkgs = import nixpkgs { inherit system; };
}
);
in
{
devShells = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
gcc
clang
];
hardeningDisable = [ "all" ];
packages = with pkgs; [
gdb
valgrind
compiledb
inetutils
nixfmt-rfc-style
];
};
}
);
};
}