nixpkgs/pkgs/by-name/cj/cjs/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

84 lines
1.5 KiB
Nix
Raw Normal View History

{ 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
, libsysprof-capture
, spidermonkey_115
2020-09-28 13:06:32 +00:00
, meson
, mesonEmulatorHook
2020-09-28 13:06:32 +00:00
, 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";
version = "6.2.0";
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-/74E10txRjwN9RkjVB8M0MPYakJ659yJWanc4DC09wg=";
2020-01-18 16:25:42 +00:00
};
2020-09-28 13:06:32 +00:00
outputs = [ "out" "dev" ];
strictDeps = true;
2020-09-28 13:06:32 +00:00
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
dbus # for dbus-run-session
gobject-introspection
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
2020-09-28 13:06:32 +00:00
];
buildInputs = [
cairo
readline
libsysprof-capture
spidermonkey_115
2020-09-28 13:06:32 +00:00
];
2020-01-18 16:25:42 +00:00
propagatedBuildInputs = [
glib
];
mesonFlags = lib.optionals stdenv.hostPlatform.isMusl [
2020-09-28 13:06:32 +00:00
"-Dprofiler=disabled"
2020-01-18 16:25:42 +00:00
];
postPatch = ''
patchShebangs --build build/choose-tests-locale.sh
'';
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 13:06:32 +00: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
};
}