1 { lib, stdenv, fetchFromGitHub, pkg-config, xorg }:
3 stdenv.mkDerivation (finalAttrs: {
7 src = fetchFromGitHub {
10 rev = "SPECTRWM_${lib.replaceStrings ["."] ["_"] finalAttrs.version}";
11 hash = "sha256-Nlzo35OsNqFbR6nl3nnGXDWmwc8JlP4tyDuIGtKTnIY=";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = with xorg; [
26 subdir = if stdenv.isDarwin then "osx" else "linux";
29 makeFlags = [ "PREFIX=${placeholder "out"}" ];
32 description = "A tiling window manager";
33 homepage = "https://github.com/conformal/spectrwm";
34 maintainers = with maintainers; [ rake5k ];
35 license = licenses.isc;
36 platforms = platforms.all;
39 spectrwm is a small dynamic tiling window manager for X11. It
40 tries to stay out of the way so that valuable screen real estate
41 can be used for much more important stuff. It has sane defaults
42 and does not require one to learn a language to do any
43 configuration. It was written by hackers for hackers and it
44 strives to be small, compact and fast.