pkgs/development/interpreters/lua-5: added support for all Unix platforms

svn path=/nixpkgs/trunk/; revision=23362
This commit is contained in:
Peter Simons 2010-08-23 14:41:03 +00:00
parent 960323ec73
commit c50ae128d5

View File

@ -9,7 +9,12 @@ stdenv.mkDerivation {
};
makeFlags = "CFLAGS=-fPIC";
buildFlags = "linux"; # TODO: support for non-linux systems
buildFlags = if stdenv.isLinux then "linux" else
if stdenv.isDarwin then "macosx" else
if stdenv.isFreeBSD then "freebsd" else
if stdenv.isBSD then "bsd" else
"posix"
;
installFlags = "install INSTALL_TOP=\${out}";
postInstall = ''
sed -i -e "s@/usr/local@$out@" etc/lua.pc
@ -30,7 +35,7 @@ stdenv.mkDerivation {
for configuration, scripting, and rapid prototyping.
'';
license = "MIT";
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
maintainers = [];
};
}