diff options
author | John Ericson | 2017-09-28 12:32:57 -0400 |
---|---|---|
committer | John Ericson | 2017-09-28 12:32:57 -0400 |
commit | f037625f87b0b1d8852a1f31ebaece5fdbc87a2b (patch) | |
tree | af8c8369954890db69195a1e9394ce16c7640d7f /pkgs/desktops/gnome-3/core/gjs | |
parent | f08d6f0e2daf9f3d9daa070eee223855b33c430d (diff) | |
parent | 4e22e88b914ffb63393449c5e20fe8843a7ce93b (diff) |
Merge remote-tracking branch 'upstream/staging' into deps-reorg
Diffstat (limited to 'pkgs/desktops/gnome-3/core/gjs')
-rw-r--r-- | pkgs/desktops/gnome-3/core/gjs/default.nix | 26 | ||||
-rw-r--r-- | pkgs/desktops/gnome-3/core/gjs/src.nix | 10 |
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome-3/core/gjs/default.nix b/pkgs/desktops/gnome-3/core/gjs/default.nix new file mode 100644 index 000000000000..482d6ae64a40 --- /dev/null +++ b/pkgs/desktops/gnome-3/core/gjs/default.nix @@ -0,0 +1,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; + }; + +} diff --git a/pkgs/desktops/gnome-3/core/gjs/src.nix b/pkgs/desktops/gnome-3/core/gjs/src.nix new file mode 100644 index 000000000000..27162fcbfd45 --- /dev/null +++ b/pkgs/desktops/gnome-3/core/gjs/src.nix @@ -0,0 +1,10 @@ +# Autogenerated by maintainers/scripts/gnome.sh update + +fetchurl: { + name = "gjs-1.48.6"; + + src = fetchurl { + url = mirror://gnome/sources/gjs/1.48/gjs-1.48.6.tar.xz; + sha256 = "e85f65ba4b38bf80b6174949dfe6fce89e88b8213bbdde4ac1fde473c08bd312"; + }; +} |