gjs: fix readline reference in .la file

This commit is contained in:
Luca Bruno 2015-08-14 21:08:06 +02:00
parent 529596fd31
commit c4358e0278

View File

@ -1,5 +1,5 @@
{ fetchurl, stdenv, pkgconfig, gnome3, gtk3, gobjectIntrospection { fetchurl, stdenv, pkgconfig, gnome3, gtk3, gobjectIntrospection
, spidermonkey_24, pango, readline, glib }: , spidermonkey_24, pango, readline, glib, libxml2 }:
let let
majorVersion = "1.43"; majorVersion = "1.43";
@ -12,10 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "0khwm8l6m6x71rwf3q92d6scbhmrpiw7kqmj34nn588fb7a4vdc2"; sha256 = "0khwm8l6m6x71rwf3q92d6scbhmrpiw7kqmj34nn588fb7a4vdc2";
}; };
buildInputs = [ gobjectIntrospection pkgconfig gtk3 glib pango readline ]; buildInputs = [ libxml2 gobjectIntrospection pkgconfig gtk3 glib pango readline ];
propagatedBuildInputs = [ spidermonkey_24 ]; propagatedBuildInputs = [ spidermonkey_24 ];
postInstall = ''
sed 's|-lreadline|-L${readline}/lib -lreadline|g' -i $out/lib/libgjs.la
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
maintainers = gnome3.maintainers; maintainers = gnome3.maintainers;
platforms = platforms.linux; platforms = platforms.linux;