2022-09-18 15:06:11 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-01-18 16:25:42 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gobject-introspection
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2020-01-18 16:25:42 +00:00
|
|
|
, cairo
|
|
|
|
, glib
|
|
|
|
, readline
|
2020-09-28 13:06:32 +00:00
|
|
|
, spidermonkey_78
|
|
|
|
, meson
|
|
|
|
, dbus
|
|
|
|
, ninja
|
|
|
|
, which
|
|
|
|
, libxml2
|
2020-01-18 16:25:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-02-06 13:44:01 +00:00
|
|
|
pname = "cjs";
|
2022-11-17 13:53:35 +00:00
|
|
|
version = "5.6.1";
|
2020-01-18 16:25:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-26 14:47:29 +00:00
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "cjs";
|
2021-02-06 13:44:01 +00:00
|
|
|
rev = version;
|
2022-11-17 13:53:35 +00:00
|
|
|
hash = "sha256-f9esbQi5WWSMAGlEs9HJFToOvmOrbP2lDW1gGh/48gw=";
|
2020-01-18 16:25:42 +00:00
|
|
|
};
|
|
|
|
|
2020-09-28 13:06:32 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-11-24 09:15:10 +00:00
|
|
|
meson
|
2020-09-28 13:06:32 +00:00
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-09-28 13:06:32 +00:00
|
|
|
which # for locale detection
|
|
|
|
libxml2 # for xml-stripblanks
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
cairo
|
|
|
|
readline
|
|
|
|
spidermonkey_78
|
|
|
|
dbus # for dbus-run-session
|
|
|
|
];
|
|
|
|
|
2020-01-18 16:25:42 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
2020-09-28 13:06:32 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dprofiler=disabled"
|
2020-01-18 16:25:42 +00:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-18 16:25:42 +00: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 10:08:15 +00:00
|
|
|
license = with licenses; [
|
2020-09-28 13:06:32 +00:00
|
|
|
gpl2Plus
|
|
|
|
lgpl2Plus
|
|
|
|
mit
|
|
|
|
mpl11
|
|
|
|
];
|
|
|
|
|
2020-01-18 16:25:42 +00:00
|
|
|
platforms = platforms.linux;
|
2020-09-05 22:40:47 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-01-18 16:25:42 +00:00
|
|
|
};
|
|
|
|
}
|