astyle: fix on Darwin
This commit is contained in:
parent
d5225d54ad
commit
162f870e6f
|
@ -12,16 +12,22 @@ stdenv.mkDerivation {
|
|||
sha256 = "1b0f4wm1qmgcswmixv9mwbp86hbdqxk754hml8cjv5vajvqwdpzv";
|
||||
};
|
||||
|
||||
sourceRoot = "astyle/build/gcc";
|
||||
sourceRoot = if (stdenv.cc.cc.isClang or false)
|
||||
then "astyle/build/clang"
|
||||
else "astyle/build/gcc";
|
||||
|
||||
# -s option is obsolete on Darwin and breaks build
|
||||
postPatch = if stdenv.isDarwin then ''
|
||||
substituteInPlace Makefile --replace "LDFLAGSr = -s" "LDFLAGSr ="
|
||||
'' else null;
|
||||
|
||||
installFlags = "INSTALL=install prefix=$$out";
|
||||
|
||||
meta = {
|
||||
homepage = "http://astyle.sourceforge.net/";
|
||||
description = "Source code indenter, formatter, and beautifier for C, C++, C# and Java";
|
||||
license = "LGPL";
|
||||
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = stdenv.lib.licenses.lgpl3;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue