commit 1d83c6d9b1468cb65ad488adbb878f881b0a35c0 parent adaed95793d4f96838931744dd6b6f29afae9ae1 Author: Milutin Popovic <milutin@popovic.xyz> Date: Sun, 4 Jan 2026 19:50:21 +0000 flake Diffstat:
| A | .envrc | | | 1 | + |
| A | .gitignore | | | 14 | ++++++++++++++ |
| A | flake.nix | | | 31 | +++++++++++++++++++++++++++++++ |
3 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/.envrc b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore @@ -0,0 +1,14 @@ +# Build artifacts (suckless) +slock +*.o +*.d +*.a +*.so + +# Nix build results +result +result-* + +# direnv +.direnv/ +.envrc.local diff --git a/flake.nix b/flake.nix @@ -0,0 +1,31 @@ +{ + 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 + ncurses + fontconfig + freetype + ]; + + # Libraries + headers + buildInputs = with pkgs; [ + libX11 + libXft + ]; + }; + }; +}