From f75703bfbf0031a096da536daa00667ca22d4bc2 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sun, 9 Apr 2017 01:30:25 -0500 Subject: [PATCH] spectrwm: fix OSX build --- pkgs/applications/window-managers/spectrwm/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/window-managers/spectrwm/default.nix b/pkgs/applications/window-managers/spectrwm/default.nix index 39825e37f30f3d..1a3c976f77dea6 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";