about summary refs log tree commit diff
path: root/pkgs/by-name/rl/rl_json/package.nix
blob: 81076dd07677d33b1796eb3a993a2496c82bd4e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, tcl
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "rl_json";
  version = "0.15.1";

  src = fetchFromGitHub {
    owner = "RubyLane";
    repo = "rl_json";
    rev = finalAttrs.version;
    hash = "sha256-FkOsdOHPE75bSkKw3cdaech6jAv0f/RJ9tgRVzPSAdA=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [
    autoreconfHook
    tcl.tclPackageHook
  ];

  configureFlags = [
    "--with-tcl=${tcl}/lib"
    "--libdir=${placeholder "out"}/lib"
    "--includedir=${placeholder "out"}/include"
    "--datarootdir=${placeholder "out"}/share"
  ];

  meta = {
    homepage = "https://github.com/RubyLane/rl_json";
    description = "Tcl extension for fast json manipulation";
    license = lib.licenses.tcltk;
    longDescription = ''
      Extends Tcl with a json value type and a command to manipulate json values
      directly. Similar in spirit to how the dict command manipulates dictionary
      values, and comparable in speed.
    '';
    maintainers = with lib.maintainers; [ fgaz ];
    platforms = tcl.meta.platforms;
    # From version 0.15.1: 'endian.h' file not found
    broken = stdenv.isDarwin;
  };
})