nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 tcl,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "rl_json";
11 version = "0.15.3";
12
13 src = fetchFromGitHub {
14 owner = "RubyLane";
15 repo = "rl_json";
16 rev = finalAttrs.version;
17 hash = "sha256-JyJBf8lMrO/P5grOMojqs1PRoMPRsPWGQYS33eB7bRI=";
18 fetchSubmodules = true;
19 };
20
21 nativeBuildInputs = [
22 autoreconfHook
23 tcl.tclPackageHook
24 ];
25
26 configureFlags = [
27 "--with-tcl=${tcl}/lib"
28 "--libdir=${placeholder "out"}/lib"
29 "--includedir=${placeholder "out"}/include"
30 "--datarootdir=${placeholder "out"}/share"
31 ];
32
33 meta = {
34 homepage = "https://github.com/RubyLane/rl_json";
35 description = "Tcl extension for fast json manipulation";
36 license = lib.licenses.tcltk;
37 longDescription = ''
38 Extends Tcl with a json value type and a command to manipulate json values
39 directly. Similar in spirit to how the dict command manipulates dictionary
40 values, and comparable in speed.
41 '';
42 maintainers = with lib.maintainers; [ fgaz ];
43 platforms = tcl.meta.platforms;
44 # From version 0.15.1: 'endian.h' file not found
45 broken = stdenv.hostPlatform.isDarwin;
46 };
47})