commit 431d657c119ffb18dc3d72eeed8383f969cc7af1 parent 6fe9d9858ce07d0272d470d5ad6852f976b72525 Author: Milutin Popovic <milutin@popovic.xyz> Date: Sun, 4 Jan 2026 19:43:54 +0000 add flake Diffstat:
| A | .envrc | | | 1 | + |
| A | flake.nix | | | 30 | ++++++++++++++++++++++++++++++ |
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/.envrc b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/flake.nix b/flake.nix @@ -0,0 +1,30 @@ +{ + description = "slock development shell"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + in { + shell = pkgs.zsh; + + devShells.${system}.default = pkgs.mkShell { + # Compilers + build tools + nativeBuildInputs = with pkgs; [ + gcc + gnumake + pkg-config + ]; + + # Libraries + headers + buildInputs = with pkgs; [ + fontconfig + libx11 + libxinerama + libxft + ]; + }; + }; +}