1{ lib
2, stdenv
3, fetchurl
4, zlib
5}:
6
7stdenv.mkDerivation rec {
8 pname = "boron";
9 version = "2.0.8";
10
11 src = fetchurl {
12 url = "https://sourceforge.net/projects/urlan/files/Boron/boron-${version}.tar.gz";
13 sha256 = "sha256-Ni/LJgOABC2wXDMsg1ZAuZWSQdFT9/Fa4lH4+V0gy8M=";
14 };
15
16 # this is not a standard Autotools-like `configure` script
17 dontAddPrefix = true;
18
19 preConfigure = ''
20 patchShebangs configure
21 '';
22
23 configureFlags = [ "--thread" ];
24
25 makeFlags = [ "DESTDIR=$(out)" ];
26
27 buildInputs = [
28 zlib
29 ];
30
31 installTargets = [ "install" "install-dev" ];
32
33 doCheck = true;
34
35 checkPhase = ''
36 patchShebangs .
37 make -C test
38 '';
39
40 meta = with lib; {
41 homepage = "https://urlan.sourceforge.net/boron/";
42 description = "Scripting language and C library useful for building DSLs";
43 license = licenses.lgpl3Plus;
44 platforms = platforms.linux;
45 maintainers = with maintainers; [ mausch ];
46 };
47}
48