flake.nix (763B)
1 { 2 description = "slock development shell"; 3 4 inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 5 6 outputs = { self, nixpkgs }: 7 let 8 system = "x86_64-linux"; 9 pkgs = import nixpkgs { inherit system; }; 10 in { 11 devShells.${system}.default = pkgs.mkShell { 12 # Compilers + build tools 13 nativeBuildInputs = with pkgs; [ 14 gcc 15 gnumake 16 pkg-config 17 ]; 18 19 # Libraries + headers 20 buildInputs = with pkgs; [ 21 libx11 22 libxext 23 libxrandr 24 libxcrypt 25 libxinerama 26 libxft 27 imlib2 28 libxcb 29 xorg.libXrender 30 xorg.xorgproto 31 freetype 32 fontconfig 33 ]; 34 }; 35 }; 36 }