Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shell.nix with an environment for building and using Clad on NixOS #973

Merged
merged 2 commits into from
Jul 8, 2024

Commits on Jul 8, 2024

  1. Introduce CLAD_DISABLE_TESTS flag to build system

    The testing and benchmarking relies on a hack that temporariliy changes
    the compiler flags. This doesn't work in all environments, and it would
    be nice if the the tests could be disabled so it's possible to build
    Clad without this hack.
    
    This makes it possible to build Clad on NixOS.
    guitargeek committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    3a2072f View commit details
    Browse the repository at this point in the history
  2. Add shell.nix with an environment for building and using Clad on NixOS

    I use this nix environment to build Clad standalone and test the reproducers.
    
    Until recently, I could just use my native Arch Linux environment to do
    so, but after Arch dropped LLVM 17 this was not possible anymore (Clad
    doesn't work the LLVM 18 yet). Therefore, I had to find another
    solution, and nix packages works quite well.
    
    It would be nice to have this in the repo so also other people can work
    with Clad in NixOS, without having to waste time figuring out the
    dependencies and necessary CMake flags.
    guitargeek committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    7f712db View commit details
    Browse the repository at this point in the history