nixpkgs/pkgs/desktops/gnome-3/core/gjs/default.nix

23 lines
664 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; {
2018-02-14 20:28:44 +00:00
description = "JavaScript bindings for GNOME";
maintainers = gnome3.maintainers;
platforms = platforms.linux;
2018-02-14 20:28:44 +00:00
license = licenses.lgpl2Plus;
};
}