lua: install lua.pc
svn path=/nixpkgs/trunk/; revision=23049
This commit is contained in:
parent
1089153c7f
commit
9f77579f41
@ -9,5 +9,10 @@ stdenv.mkDerivation {
|
|||||||
makeFlags = [ "CFLAGS=-fPIC" ];
|
makeFlags = [ "CFLAGS=-fPIC" ];
|
||||||
buildFlags = "linux"; # TODO: support for non-linux systems
|
buildFlags = "linux"; # TODO: support for non-linux systems
|
||||||
installFlags = "install INSTALL_TOP=\${out}";
|
installFlags = "install INSTALL_TOP=\${out}";
|
||||||
|
postInstall = ''
|
||||||
|
sed -i -e "s@/usr/local@$out@" etc/lua.pc
|
||||||
|
sed -i -e "s@-llua -lm@-llua -lm -ldl@" etc/lua.pc
|
||||||
|
install -D -m 644 etc/lua.pc $out/lib/pkgconfig/lua.pc
|
||||||
|
'';
|
||||||
buildInputs = [ ncurses readline ];
|
buildInputs = [ ncurses readline ];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user