--- /dev/null
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1777268161,
+ "narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "1c3fe55ad329cbcb28471bb30f05c9827f724c76",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
--- /dev/null
+{
+ description = "flake for building dwm";
+
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
+ };
+
+ outputs =
+ { self, nixpkgs }:
+ let
+ system = "x86_64-linux";
+ pkgs = import nixpkgs { inherit system; };
+
+ in
+ {
+ packages.${system}.default = pkgs.stdenv.mkDerivation {
+ pname = "dwm";
+ version = "6.8";
+ src = ./.;
+
+ nativeBuildInputs = [ pkgs.pkg-config ];
+ buildInputs = [
+ pkgs.libX11
+ pkgs.libxinerama
+ pkgs.libxft
+ ];
+
+ makeFlags = [
+ "PREFIX=$(out)"
+ "CC:=$(CC)"
+ ];
+
+ };
+ };
+}