mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
5cfb2211ea
g-i 1.82.0 now warns on incorrect callback annotations. For now don't treat warnings as errors.
87 lines
1.6 KiB
Nix
87 lines
1.6 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, gobject-introspection
|
|
, pkg-config
|
|
, cairo
|
|
, glib
|
|
, readline
|
|
, libsysprof-capture
|
|
, spidermonkey_115
|
|
, meson
|
|
, mesonEmulatorHook
|
|
, dbus
|
|
, ninja
|
|
, which
|
|
, libxml2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cjs";
|
|
version = "6.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = "cjs";
|
|
rev = version;
|
|
hash = "sha256-/74E10txRjwN9RkjVB8M0MPYakJ659yJWanc4DC09wg=";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
which # for locale detection
|
|
libxml2 # for xml-stripblanks
|
|
dbus # for dbus-run-session
|
|
gobject-introspection
|
|
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
mesonEmulatorHook
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
readline
|
|
libsysprof-capture
|
|
spidermonkey_115
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glib
|
|
];
|
|
|
|
mesonFlags = lib.optionals stdenv.hostPlatform.isMusl [
|
|
"-Dprofiler=disabled"
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs --build build/choose-tests-locale.sh
|
|
|
|
# https://github.com/linuxmint/cjs/issues/123
|
|
substituteInPlace meson.build --replace-fail "extra_args: '--warn-error'," ""
|
|
'';
|
|
|
|
meta = with 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
|
|
];
|
|
|
|
platforms = platforms.linux;
|
|
maintainers = teams.cinnamon.members;
|
|
};
|
|
}
|