Created
April 6, 2025 00:21
-
-
Save raquentin/85a295024f9d1e674bed1411825d69cf to your computer and use it in GitHub Desktop.
CS 4240 Proj 3 Build Flake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "A dev env for CS 4240 project 3."; | |
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11"; | |
outputs = { | |
self, | |
nixpkgs, | |
}: let | |
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; | |
forEachSupportedSystem = f: | |
nixpkgs.lib.genAttrs supportedSystems (system: | |
f { | |
pkgs = import nixpkgs {inherit system;}; | |
}); | |
in { | |
devShells = forEachSupportedSystem ({pkgs}: { | |
default = | |
pkgs.mkShell.override {stdenv = pkgs.llvmPackages_19.libcxxStdenv;} | |
{ | |
packages = with pkgs; [ | |
llvmPackages_19.libcxxClang | |
llvmPackages_19.clang-tools | |
gdb | |
cmake | |
openssl | |
valgrind | |
antlr4_12 | |
]; | |
}; | |
}); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment