2016-09-18 20:35:23 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gnome3, gtk3, gobjectIntrospection
|
2017-06-25 17:59:23 +01:00
|
|
|
, spidermonkey_38, pango, readline, glib, libxml2, dbus }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit (import ./src.nix fetchurl) name src;
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libxml2 gobjectIntrospection gtk3 glib pango readline dbus ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-06-25 17:59:23 +01:00
|
|
|
propagatedBuildInputs = [ spidermonkey_38 ];
|
|
|
|
|
|
|
|
# GJS expects mozjs-38.pc but spidermonkey_38 only provides js.pc
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i s/mozjs-38/js/ configure
|
|
|
|
'';
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed 's|-lreadline|-L${readline.out}/lib -lreadline|g' -i $out/lib/libgjs.la
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|