2024-01-02 nix Boost environment Tags: nix boost cobalt{ pkgs ? import <nixpkgs> { } }: let boost-src = { version = "1.84.0"; src = pkgs.fetchurl { url = "https://archives.boost.io/release/1.84.0/source/boost_1_84_0.tar.bz2"; sha256 = "cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454"; }; }; boost-build = pkgs.boost-build.override { stdenv = pkgs.gcc13Stdenv; useBoost = boost-src; }; boost184 = (pkgs.boost.override { stdenv = pkgs.gcc13Stdenv; boost-build = boost-build; extraB2Args = [ "cxxstd=20" ]; }).overrideAttrs (finalAttrs: previousAttrs: boost-src); in pkgs.gcc13Stdenv.mkDerivation { name = "boost184-nix-shell"; nativeBuildInputs = with pkgs; [ clang-tools_17 cmake ]; buildInputs = [ boost184 ]; }