3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/core/gjs/default.nix

22 lines
580 B
Nix
Raw Normal View History

{ fetchurl, stdenv, pkgconfig, gnome3, gtk3, gobjectIntrospection
2017-10-04 22:43:04 +01:00
, spidermonkey_52, 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 ];
2017-10-04 22:43:04 +01:00
propagatedBuildInputs = [ spidermonkey_52 ];
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;
};
}