Skip to content

Instantly share code, notes, and snippets.

@raquentin
Created April 6, 2025 00:21
Show Gist options
  • Save raquentin/85a295024f9d1e674bed1411825d69cf to your computer and use it in GitHub Desktop.
Save raquentin/85a295024f9d1e674bed1411825d69cf to your computer and use it in GitHub Desktop.
CS 4240 Proj 3 Build Flake
{
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