mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
pkgs/development/interpreters/lua-5: added support for all Unix platforms
svn path=/nixpkgs/trunk/; revision=23362
This commit is contained in:
parent
960323ec73
commit
c50ae128d5
@ -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 = [];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user