2020-09-28 15:06:32 +02:00
|
|
|
{ dbus-glib
|
2020-01-18 17:25:42 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2021-02-06 14:44:01 +01:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-01-18 17:25:42 +01:00
|
|
|
, wrapGAppsHook
|
|
|
|
, python3
|
|
|
|
, cairo
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2020-01-18 17:25:42 +01:00
|
|
|
, xapps
|
|
|
|
, keybinder3
|
|
|
|
, upower
|
|
|
|
, callPackage
|
|
|
|
, glib
|
|
|
|
, libffi
|
|
|
|
, gtk3
|
|
|
|
, readline
|
2020-09-28 15:06:32 +02:00
|
|
|
, spidermonkey_78
|
|
|
|
, meson
|
|
|
|
, sysprof
|
|
|
|
, dbus
|
2021-05-08 15:45:03 +02:00
|
|
|
, xvfb-run
|
2020-09-28 15:06:32 +02:00
|
|
|
, ninja
|
|
|
|
, makeWrapper
|
|
|
|
, which
|
|
|
|
, libxml2
|
2021-11-24 10:15:10 +01:00
|
|
|
, gtk4
|
2020-01-18 17:25:42 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-02-06 14:44:01 +01:00
|
|
|
pname = "cjs";
|
2021-11-24 10:15:10 +01:00
|
|
|
version = "5.2.0";
|
2020-01-18 17:25:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-26 15:47:29 +01:00
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "cjs";
|
2021-02-06 14:44:01 +01:00
|
|
|
rev = version;
|
2021-11-24 10:15:10 +01:00
|
|
|
hash = "sha256-06sTk513qVMdznSHJzzB3XIPTcfjgxTB2o+ALqwPpHM=";
|
2020-01-18 17:25:42 +01:00
|
|
|
};
|
|
|
|
|
2020-09-28 15:06:32 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-11-24 10:15:10 +01:00
|
|
|
meson
|
2020-09-28 15:06:32 +02:00
|
|
|
ninja
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2020-09-28 15:06:32 +02:00
|
|
|
makeWrapper
|
|
|
|
which # for locale detection
|
|
|
|
libxml2 # for xml-stripblanks
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-11-24 10:15:10 +01:00
|
|
|
gtk4
|
2020-09-28 15:06:32 +02:00
|
|
|
gobject-introspection
|
|
|
|
cairo
|
|
|
|
readline
|
|
|
|
spidermonkey_78
|
|
|
|
dbus # for dbus-run-session
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-05-08 15:45:03 +02:00
|
|
|
xvfb-run
|
2020-09-28 15:06:32 +02:00
|
|
|
];
|
|
|
|
|
2020-01-18 17:25:42 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
|
|
|
|
# bindings
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.caribou
|
2020-01-18 17:25:42 +01:00
|
|
|
keybinder3
|
|
|
|
upower
|
|
|
|
xapps
|
|
|
|
];
|
|
|
|
|
2020-09-28 15:06:32 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dprofiler=disabled"
|
2020-01-18 17:25:42 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-01-18 17:25:42 +01:00
|
|
|
homepage = "https://github.com/linuxmint/cjs";
|
|
|
|
description = "JavaScript bindings for Cinnamon";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
This module contains JavaScript bindings based on gobject-introspection.
|
|
|
|
'';
|
|
|
|
|
2020-01-22 11:08:15 +01:00
|
|
|
license = with licenses; [
|
2020-09-28 15:06:32 +02:00
|
|
|
gpl2Plus
|
|
|
|
lgpl2Plus
|
|
|
|
mit
|
|
|
|
mpl11
|
|
|
|
];
|
|
|
|
|
2020-01-18 17:25:42 +01:00
|
|
|
platforms = platforms.linux;
|
2020-09-06 00:40:47 +02:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-01-18 17:25:42 +01:00
|
|
|
};
|
|
|
|
}
|