Add gnome3.gjs

This commit is contained in:
Domen Kožar 2014-01-20 12:34:44 +01:00
parent 914b6c249b
commit 34270e37a7
4 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{ fetchurl, stdenv, pkgconfig, gnome3, gobjectIntrospection, spidermonkey_17 }:
stdenv.mkDerivation rec {
name = "gjs-1.38.1";
src = fetchurl {
url = "mirror://gnome/sources/gjs/1.38/${name}.tar.xz";
sha256 = "0xl1zc5ncaxqs5ww5j82rzqrg429l8pdapqclxiba7dxwyh6a83b";
};
buildInputs = with gnome3;
[ gobjectIntrospection pkgconfig glib ];
propagatedBuildInputs = [ spidermonkey_17 ];
meta = with stdenv.lib; {
platforms = platforms.linux;
};
}

View File

@ -32,6 +32,8 @@ rec {
gdm = callPackage ./core/gdm { };
gjs = callPackage ./core/gjs { };
gnome_icon_theme = callPackage ./core/gnome-icon-theme { };
gnome-menus = callPackage ./core/gnome-menus { };

View File

@ -0,0 +1,40 @@
{ stdenv, fetchurl, pkgconfig, nspr, perl, python, zip }:
stdenv.mkDerivation rec {
version = "17.0.0";
name = "spidermonkey-${version}";
src = fetchurl {
url = "http://ftp.mozilla.org/pub/mozilla.org/js/mozjs${version}.tar.gz";
sha256 = "1fig2wf4f10v43mqx67y68z6h77sy900d1w0pz9qarrqx57rc7ij";
};
propagatedBuildInputs = [ nspr ];
buildInputs = [ pkgconfig perl python zip ];
postUnpack = "sourceRoot=\${sourceRoot}/js/src";
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${nspr}/include/nspr"
export LIBXUL_DIST=$out
'';
configureFlags = [ "--enable-threadsafe" "--with-system-nspr" ];
# hack around a make problem, see https://github.com/NixOS/nixpkgs/issues/1279#issuecomment-29547393
preBuild = "touch -- {.,shell,jsapi-tests}/{-lpthread,-ldl}";
enableParallelBuilding = true;
doCheck = true;
preCheck = "rm jit-test/tests/sunspider/check-date-format-tofte.js"; # https://bugzil.la/600522
meta = with stdenv.lib; {
description = "Mozilla's JavaScript engine written in C/C++";
homepage = https://developer.mozilla.org/en/SpiderMonkey;
# TODO: MPL/GPL/LGPL tri-license.
maintainers = [ maintainers.goibhniu ];
};
}

View File

@ -3403,6 +3403,7 @@ let
spidermonkey = callPackage ../development/interpreters/spidermonkey { };
spidermonkey_1_8_0rc1 = callPackage ../development/interpreters/spidermonkey/1.8.0-rc1.nix { };
spidermonkey_185 = callPackage ../development/interpreters/spidermonkey/185-1.0.0.nix { };
spidermonkey_17 = callPackage ../development/interpreters/spidermonkey/17.0.nix { };
supercollider = callPackage ../development/interpreters/supercollider {
qt = qt4;