3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/cinnamon/cjs/default.nix

97 lines
1.5 KiB
Nix
Raw Normal View History

2020-09-28 14:06:32 +01:00
{ dbus-glib
2020-01-18 16:25:42 +00:00
, fetchFromGitHub
, gobject-introspection
2021-01-17 02:21:50 +00:00
, pkg-config
2021-02-06 13:44:01 +00:00
, lib
, stdenv
2020-01-18 16:25:42 +00:00
, wrapGAppsHook
, python3
, cairo
, gnome
2020-01-18 16:25:42 +00:00
, xapps
, keybinder3
, upower
, callPackage
, glib
, libffi
, gtk3
, readline
2020-09-28 14:06:32 +01:00
, spidermonkey_78
, meson
, sysprof
, dbus
, xvfb_run
, ninja
, makeWrapper
, which
, libxml2
2020-01-18 16:25:42 +00:00
}:
stdenv.mkDerivation rec {
2021-02-06 13:44:01 +00:00
pname = "cjs";
version = "4.8.2";
2020-01-18 16:25:42 +00:00
src = fetchFromGitHub {
owner = "linuxmint";
repo = "cjs";
2021-02-06 13:44:01 +00:00
rev = version;
hash = "sha256-6+zlWL0DmyP+RFp1ECA4XGbgYUlsMqqyTd6z46w99Ug=";
2020-01-18 16:25:42 +00:00
};
2020-09-28 14:06:32 +01:00
outputs = [ "out" "dev" ];
nativeBuildInputs = [
meson # ADDING cmake breaks the build, ignore meson warning
ninja
2021-01-17 02:21:50 +00:00
pkg-config
2020-09-28 14:06:32 +01:00
makeWrapper
which # for locale detection
libxml2 # for xml-stripblanks
];
buildInputs = [
gobject-introspection
cairo
readline
spidermonkey_78
dbus # for dbus-run-session
];
checkInputs = [
xvfb_run
];
2020-01-18 16:25:42 +00:00
propagatedBuildInputs = [
glib
# bindings
gnome.caribou
2020-01-18 16:25:42 +00:00
keybinder3
upower
xapps
];
2020-09-28 14:06:32 +01:00
mesonFlags = [
"-Dprofiler=disabled"
2020-01-18 16:25:42 +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.
'';
license = with licenses; [
2020-09-28 14:06:32 +01:00
gpl2Plus
lgpl2Plus
mit
mpl11
];
2020-01-18 16:25:42 +00:00
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
2020-01-18 16:25:42 +00:00
};
}