summaryrefslogtreecommitdiffstats
path: root/pkgs/desktops/cinnamon/cjs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/cinnamon/cjs/default.nix')
-rw-r--r--pkgs/desktops/cinnamon/cjs/default.nix93
1 files changed, 50 insertions, 43 deletions
diff --git a/pkgs/desktops/cinnamon/cjs/default.nix b/pkgs/desktops/cinnamon/cjs/default.nix
index d67a5d8386a8..184c14381965 100644
--- a/pkgs/desktops/cinnamon/cjs/default.nix
+++ b/pkgs/desktops/cinnamon/cjs/default.nix
@@ -1,10 +1,8 @@
-{ autoconf-archive
-, autoreconfHook
-, dbus-glib
+{ dbus-glib
, fetchFromGitHub
, gobject-introspection
-, pkgconfig
-, stdenv
+, pkg-config
+, lib, stdenv
, wrapGAppsHook
, python3
, cairo
@@ -17,26 +15,51 @@
, libffi
, gtk3
, readline
+, spidermonkey_78
+, meson
+, sysprof
+, dbus
+, xvfb_run
+, ninja
+, makeWrapper
+, which
+, libxml2
}:
-let
-
- # https://github.com/linuxmint/cjs/issues/80
- spidermonkey_52 = callPackage ./spidermonkey_52.nix {};
-
-in
-
stdenv.mkDerivation rec {
- pname = "cjs";
- version = "4.4.0";
+ pname = "cjs-unstable";
+ version = "2020-10-19";
src = fetchFromGitHub {
owner = "linuxmint";
- repo = pname;
- rev = version;
- sha256 = "0q5h2pbwysc6hwq5js3lwi6zn7i5qjjy070ynfhfn3z69lw5iz2d";
+ repo = "cjs";
+ rev = "befc11adb5ba10681464e6fa81b1a79f108ce61c";
+ hash = "sha256-F2t8uKV2r29NxX2+3mYp5x1bug2lwihJZTK1dSS8rPg=";
};
+ outputs = [ "out" "dev" ];
+
+ nativeBuildInputs = [
+ meson # ADDING cmake breaks the build, ignore meson warning
+ ninja
+ pkg-config
+ makeWrapper
+ which # for locale detection
+ libxml2 # for xml-stripblanks
+ ];
+
+ buildInputs = [
+ gobject-introspection
+ cairo
+ readline
+ spidermonkey_78
+ dbus # for dbus-run-session
+ ];
+
+ checkInputs = [
+ xvfb_run
+ ];
+
propagatedBuildInputs = [
glib
@@ -47,28 +70,11 @@ stdenv.mkDerivation rec {
xapps
];
- nativeBuildInputs = [
- autoconf-archive
- autoreconfHook
- wrapGAppsHook
- pkgconfig
+ mesonFlags = [
+ "-Dprofiler=disabled"
];
- buildInputs = [
- # from .pc
- gobject-introspection
- libffi
- spidermonkey_52 # mozjs-52
- cairo # +cairo-gobject
- gtk3
-
- # other
-
- dbus-glib
- readline
- ];
-
- meta = with stdenv.lib; {
+ meta = with lib; {
homepage = "https://github.com/linuxmint/cjs";
description = "JavaScript bindings for Cinnamon";
@@ -77,12 +83,13 @@ stdenv.mkDerivation rec {
'';
license = with licenses; [
- gpl2Plus
- lgpl2Plus
- mit
- mpl11
- ];
+ gpl2Plus
+ lgpl2Plus
+ mit
+ mpl11
+ ];
+
platforms = platforms.linux;
- maintainers = [ maintainers.mkg20001 ];
+ maintainers = teams.cinnamon.members;
};
}