spectrwm: fix OSX build

This commit is contained in:
Matthew Bauer
2017-04-09 01:30:25 -05:00
parent f48cd9503d
commit f75703bfbf

View File

@@ -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";