dwmblocks

fork of dwmblocks
git clone git://popovic.xyz/dwmblocks.git
Log | Files | Refs | README | LICENSE

commit 5cf84cf2848a4520a0784abe3d38adac1b5e40f8
parent 7c89b5590fec0cf2b6dec26d15a464382518f220
Author: Milutin Popovic <milutin@popovic.xyz>
Date:   Sun,  4 Jan 2026 19:47:20 +0000

flake

Diffstat:
A.envrc | 1+
A.gitignore | 14++++++++++++++
Aflake.nix | 27+++++++++++++++++++++++++++
3 files changed, 42 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,27 @@ +{ + 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; [ + libX11 + ]; + }; + }; +}