My omnium-gatherom of scripts and source code.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 42 lines 1.1 kB view raw
1{ 2 description = "A Nix-flake-based C/C++ development environment"; 3 4 inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz"; 5 6 outputs = { self, nixpkgs }: 7 let 8 supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 9 forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { 10 pkgs = import nixpkgs { inherit system; }; 11 }); 12 in 13 { 14 devShells = forEachSupportedSystem ({ pkgs }: { 15 default = pkgs.mkShell.override { 16 # Override stdenv in order to change compiler: 17 # stdenv = pkgs.clangStdenv; 18 } 19 { 20 packages = with pkgs; [ 21 clang-tools 22 clang 23 ninja 24 cmake 25 codespell 26 meson 27 conan 28 cppcheck 29 doxygen 30 gtest 31 louvre 32 lcov 33 vcpkg 34 vcpkg-tool 35 llvmPackages.openmp 36 pkg-config 37 waylandpp 38 ] ++ (if system == "aarch64-darwin" then [ ] else [ gdb ]); 39 }; 40 }); 41 }; 42}