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

89 lines
1.4 KiB
Nix
Raw Normal View History

2020-01-18 16:25:42 +00:00
{ autoconf-archive
, autoreconfHook
, dbus-glib
, fetchFromGitHub
, gobject-introspection
, pkgconfig
, stdenv
, wrapGAppsHook
, python3
, cairo
, gnome3
, xapps
, keybinder3
, upower
, callPackage
, glib
, libffi
, gtk3
, readline
}:
let
# https://github.com/linuxmint/cjs/issues/80
spidermonkey_52 = callPackage ./spidermonkey_52.nix {};
in
stdenv.mkDerivation rec {
pname = "cjs";
2020-06-15 18:02:47 +01:00
version = "4.6.0";
2020-01-18 16:25:42 +00:00
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
2020-06-15 18:02:47 +01:00
sha256 = "1caa43cplb40dm1bwnwca7z4yafvnrncm96k7mih6kg3m87fxqi5";
2020-01-18 16:25:42 +00:00
};
propagatedBuildInputs = [
glib
# bindings
gnome3.caribou
keybinder3
upower
xapps
];
nativeBuildInputs = [
autoconf-archive
autoreconfHook
wrapGAppsHook
pkgconfig
];
buildInputs = [
# from .pc
gobject-introspection
libffi
spidermonkey_52 # mozjs-52
cairo # +cairo-gobject
gtk3
# other
dbus-glib
readline
];
meta = with stdenv.lib; {
homepage = "https://github.com/linuxmint/cjs";
description = "JavaScript bindings for Cinnamon";
longDescription = ''
This module contains JavaScript bindings based on gobject-introspection.
'';
license = with licenses; [
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
};
}