astyle: fix on Darwin
This commit is contained in:
parent
d5225d54ad
commit
162f870e6f
@ -12,16 +12,22 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "1b0f4wm1qmgcswmixv9mwbp86hbdqxk754hml8cjv5vajvqwdpzv";
|
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";
|
installFlags = "INSTALL=install prefix=$$out";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://astyle.sourceforge.net/";
|
homepage = "http://astyle.sourceforge.net/";
|
||||||
description = "Source code indenter, formatter, and beautifier for C, C++, C# and Java";
|
description = "Source code indenter, formatter, and beautifier for C, C++, C# and Java";
|
||||||
license = "LGPL";
|
license = stdenv.lib.licenses.lgpl3;
|
||||||
|
platforms = stdenv.lib.platforms.unix;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
|
||||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user