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";
|
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}";
|
installFlags = "install INSTALL_TOP=\${out}";
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
sed -i -e "s@/usr/local@$out@" etc/lua.pc
|
sed -i -e "s@/usr/local@$out@" etc/lua.pc
|
||||||
@ -30,7 +35,7 @@ stdenv.mkDerivation {
|
|||||||
for configuration, scripting, and rapid prototyping.
|
for configuration, scripting, and rapid prototyping.
|
||||||
'';
|
'';
|
||||||
license = "MIT";
|
license = "MIT";
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
maintainers = [];
|
maintainers = [];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user