flake.nix (841B)
1 { 2 inputs = { 3 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 4 flake-utils.url = "github:numtide/flake-utils"; 5 }; 6 outputs = { self, nixpkgs, flake-utils }: 7 flake-utils.lib.eachDefaultSystem 8 (system: 9 let 10 pkgs = import nixpkgs { 11 inherit system; 12 }; 13 in 14 with pkgs; 15 { 16 devShells.default = mkShell { 17 buildInputs = [ 18 clang 19 cmake 20 pkg-config 21 gtest 22 doxygen 23 graphviz 24 python3 25 libclang.python 26 libpng 27 giflib 28 lcms2 29 brotli 30 ]; 31 shellHook = '' 32 export CC=clang 33 export CXX=clang++ 34 ''; 35 }; 36 } 37 ); 38 }