2020-10-07 09:15:18 +00:00
|
|
|
{ dbus-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2021-04-22 02:08:21 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, python3
|
|
|
|
, cairo
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2022-08-12 12:06:08 +00:00
|
|
|
, xapp
|
2020-04-24 23:36:52 +00:00
|
|
|
, keybinder3
|
|
|
|
, upower
|
|
|
|
, callPackage
|
|
|
|
, glib
|
|
|
|
, libffi
|
|
|
|
, gtk3
|
|
|
|
, readline
|
2020-10-07 09:15:18 +00:00
|
|
|
, spidermonkey_78
|
|
|
|
, meson
|
|
|
|
, sysprof
|
|
|
|
, dbus
|
2021-05-20 23:08:51 +00:00
|
|
|
, xvfb-run
|
2020-10-07 09:15:18 +00:00
|
|
|
, ninja
|
|
|
|
, makeWrapper
|
|
|
|
, which
|
|
|
|
, libxml2
|
2021-12-06 16:07:01 +00:00
|
|
|
, gtk4
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-22 02:08:21 +00:00
|
|
|
pname = "cjs";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "5.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-27 00:29:36 +00:00
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "cjs";
|
2021-04-22 02:08:21 +00:00
|
|
|
rev = version;
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-8LIVM9+Wt9V7iKUwqTBUTf8LiQ16NE3CYtCJknjl56o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
meson
|
2020-10-07 09:15:18 +00:00
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-10-07 09:15:18 +00:00
|
|
|
makeWrapper
|
|
|
|
which # for locale detection
|
|
|
|
libxml2 # for xml-stripblanks
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
gtk4
|
2020-10-07 09:15:18 +00:00
|
|
|
gobject-introspection
|
|
|
|
cairo
|
|
|
|
readline
|
|
|
|
spidermonkey_78
|
|
|
|
dbus # for dbus-run-session
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
xvfb-run
|
2020-10-07 09:15:18 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
|
|
|
|
# bindings
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.caribou
|
2020-04-24 23:36:52 +00:00
|
|
|
keybinder3
|
|
|
|
upower
|
2022-08-12 12:06:08 +00:00
|
|
|
xapp
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dprofiler=disabled"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/linuxmint/cjs";
|
|
|
|
description = "JavaScript bindings for Cinnamon";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
This module contains JavaScript bindings based on gobject-introspection.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = with licenses; [
|
2020-10-07 09:15:18 +00:00
|
|
|
gpl2Plus
|
|
|
|
lgpl2Plus
|
|
|
|
mit
|
|
|
|
mpl11
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|