diff options
| author | Skullheadx <admonty1@protonmail.com> | 2026-04-29 01:55:27 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@protonmail.com> | 2026-04-29 01:55:27 -0400 |
| commit | 71344830497c89ca961db944bde26b47c4a5b4c7 (patch) | |
| tree | 7ce10856334e86b0e6e3f7ba597918a018d60733 /flake.nix | |
| parent | buttonpress: fix status text click area mismatch (diff) | |
| download | dwm-71344830497c89ca961db944bde26b47c4a5b4c7.tar.gz dwm-71344830497c89ca961db944bde26b47c4a5b4c7.tar.bz2 dwm-71344830497c89ca961db944bde26b47c4a5b4c7.zip | |
add flake
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3e96594 --- /dev/null +++ b/flake.nix @@ -0,0 +1,35 @@ +{ + 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)" + ]; + + }; + }; +} |
