From c50ae128d51ec8dcf0f3e83dcefe11dc0110276d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 23 Aug 2010 14:41:03 +0000 Subject: [PATCH] pkgs/development/interpreters/lua-5: added support for all Unix platforms svn path=/nixpkgs/trunk/; revision=23362 --- pkgs/development/interpreters/lua-5/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/lua-5/default.nix b/pkgs/development/interpreters/lua-5/default.nix index a1f396162ccb..4b9194b2c6eb 100644 --- a/pkgs/development/interpreters/lua-5/default.nix +++ b/pkgs/development/interpreters/lua-5/default.nix @@ -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 = []; }; }