2022-09-22 12:36:57 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, cairo
|
|
|
|
, glib
|
|
|
|
, readline
|
2023-07-15 17:15:38 +00:00
|
|
|
, spidermonkey_102
|
2020-10-07 09:15:18 +00:00
|
|
|
, meson
|
|
|
|
, dbus
|
|
|
|
, ninja
|
|
|
|
, which
|
|
|
|
, libxml2
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-22 02:08:21 +00:00
|
|
|
pname = "cjs";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "5.8.0";
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-DKCe8dKdYfdeWQ9Iqr0AmDU7YDN9QrQGdTkrBV/ywV0=";
|
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
|
|
|
which # for locale detection
|
|
|
|
libxml2 # for xml-stripblanks
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
cairo
|
|
|
|
readline
|
2023-07-15 17:15:38 +00:00
|
|
|
spidermonkey_102
|
2020-10-07 09:15:18 +00:00
|
|
|
dbus # for dbus-run-session
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|