blob: 482d6ae64a4017f6c99edae6c2b91b298157a71c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ fetchurl, stdenv, pkgconfig, gnome3, gtk3, gobjectIntrospection
, spidermonkey_38, pango, readline, glib, libxml2, dbus }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 gobjectIntrospection gtk3 glib pango readline dbus ];
propagatedBuildInputs = [ spidermonkey_38 ];
# GJS expects mozjs-38.pc but spidermonkey_38 only provides js.pc
preConfigure = ''
sed -i s/mozjs-38/js/ configure
'';
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;
};
}
|