Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
92 lines
1.7 KiB
Nix
92 lines
1.7 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
gobject-introspection,
|
|
pkg-config,
|
|
cairo,
|
|
glib,
|
|
readline,
|
|
libsysprof-capture,
|
|
spidermonkey_128,
|
|
meson,
|
|
mesonEmulatorHook,
|
|
dbus,
|
|
ninja,
|
|
which,
|
|
libxml2,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "cjs";
|
|
version = "128.0-unstable-2025-09-15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = "cjs";
|
|
# Backport fixes to support GLib 2.86.0 typelibs
|
|
# nixpkgs-update: no auto update
|
|
# https://github.com/linuxmint/cjs/issues/130
|
|
rev = "1f39576bafe6bc05bce960e590dc743dd7990e39";
|
|
hash = "sha256-drKLaTZLIZfPIhcVcCAB48PdM2b0GNLe5xrHGBysVmM=";
|
|
};
|
|
|
|
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_128
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glib
|
|
];
|
|
|
|
mesonFlags = lib.optionals stdenv.hostPlatform.isMusl [
|
|
"-Dprofiler=disabled"
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs --build build/choose-tests-locale.sh
|
|
'';
|
|
|
|
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;
|
|
teams = [ teams.cinnamon ];
|
|
};
|
|
}
|