connect4/flake.nix
Julia Lange b3b369a076
Add Horizontal and Vertical win checking
Adds horizontal and vertical win checking, as well as tests for such
features.

Adds valgrind to the flake.nix

Adds test_connect4 option to Makefile
2024-07-16 01:43:16 -07:00

40 lines
861 B
Nix

{
description = "C Development";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
mini-compile-commands = {
url = "github:danielbarter/mini_compile_commands";
flake = false;
};
};
outputs = { self, nixpkgs, mini-compile-commands }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
libs = with pkgs; [
git
gnumake
gcc
clang_16
clang-tools_16
lld_16
llvmPackages_16.libllvm
valgrind
gdb
cmake
gtest
];
in {
devShells.${system}.default =
with import nixpkgs { system = "${system}"; };
let mcc-env = (callPackage mini-compile-commands {}).wrap stdenv;
in (pkgs.mkShell.override {stdenv = mcc-env;}) {
buildInputs = libs;
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath libs;
};
};
}