diff --git a/pkgs/applications/window-managers/spectrwm/default.nix b/pkgs/applications/window-managers/spectrwm/default.nix index 39825e37f30..1a3c976f77d 100644 --- a/pkgs/applications/window-managers/spectrwm/default.nix +++ b/pkgs/applications/window-managers/spectrwm/default.nix @@ -36,7 +36,10 @@ stdenv.mkDerivation rec { xcbutilwm ]; - sourceRoot = "spectrwm-SPECTRWM_2_7_2/linux"; + sourceRoot = let + subdir = if stdenv.isDarwin then "osx" else "linux"; + in "spectrwm-SPECTRWM_2_7_2/${subdir}"; + makeFlags="PREFIX=$(out)"; installPhase = "PREFIX=$out make install";