flake.nix (861B)
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 gmock 23 doxygen 24 graphviz 25 python3 26 libclang.python 27 libpng 28 giflib 29 lcms2 30 brotli 31 ]; 32 shellHook = '' 33 export CC=clang 34 export CXX=clang++ 35 ''; 36 }; 37 } 38 ); 39 }