spectrwm: fix OSX build

This commit is contained in:
Matthew Bauer 2017-04-09 01:30:25 -05:00
parent f48cd9503d
commit f75703bfbf
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3

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