Skip to content

Commit

Permalink
cinnamon.cjs: 4.6.0 -> 4.6.0-gjs1.66.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 committed Sep 28, 2020
1 parent 1e80ede commit b77e830
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 172 deletions.
83 changes: 45 additions & 38 deletions pkgs/desktops/cinnamon/cjs/default.nix
@@ -1,6 +1,4 @@
{ autoconf-archive
, autoreconfHook
, dbus-glib
{ dbus-glib
, fetchFromGitHub
, gobject-introspection
, pkgconfig
Expand All @@ -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.6.0";
version = "4.6.0-gjs-1.66.0";

src = fetchFromGitHub {
owner = "linuxmint";
owner = "leigh123linux";
repo = pname;
rev = version;
sha256 = "1caa43cplb40dm1bwnwca7z4yafvnrncm96k7mih6kg3m87fxqi5";
rev = "gjs-1.66.0";
sha256 = "1pccz7h8mwljziflhn04gmfnbl99pvcj1byz1c6zn947v5gqskj1";
};

outputs = [ "out" "dev" ];

nativeBuildInputs = [
meson # ADDING cmake breaks the build, ignore meson warning
ninja
pkgconfig
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

Expand All @@ -47,25 +70,8 @@ stdenv.mkDerivation rec {
xapps
];

nativeBuildInputs = [
autoconf-archive
autoreconfHook
wrapGAppsHook
pkgconfig
];

buildInputs = [
# from .pc
gobject-introspection
libffi
spidermonkey_52 # mozjs-52
cairo # +cairo-gobject
gtk3

# other

dbus-glib
readline
mesonFlags = [
"-Dprofiler=disabled"
];

meta = with stdenv.lib; {
Expand All @@ -77,11 +83,12 @@ stdenv.mkDerivation rec {
'';

license = with licenses; [
gpl2Plus
lgpl2Plus
mit
mpl11
];
gpl2Plus
lgpl2Plus
mit
mpl11
];

platforms = platforms.linux;
maintainers = teams.cinnamon.members;
};
Expand Down
39 changes: 0 additions & 39 deletions pkgs/desktops/cinnamon/cjs/fix-werror.patch

This file was deleted.

95 changes: 0 additions & 95 deletions pkgs/desktops/cinnamon/cjs/spidermonkey_52.nix

This file was deleted.

0 comments on commit b77e830

Please sign in to comment.