about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/interpreters/boron/default.nix
blob: e40ca2b5b4dccb3aedb0eb3b907ac3eaf70557ab (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
47
48
{ lib
, stdenv
, fetchurl
, zlib
}:

stdenv.mkDerivation rec {
  pname = "boron";
  version = "2.0.8";

  src = fetchurl {
    url = "https://sourceforge.net/projects/urlan/files/Boron/boron-${version}.tar.gz";
    sha256 = "sha256-Ni/LJgOABC2wXDMsg1ZAuZWSQdFT9/Fa4lH4+V0gy8M=";
  };

  # this is not a standard Autotools-like `configure` script
  dontAddPrefix = true;

  preConfigure = ''
    patchShebangs configure
  '';

  configureFlags = [ "--thread" ];

  makeFlags = [ "DESTDIR=$(out)" ];

  buildInputs = [
    zlib
  ];

  installTargets = [ "install" "install-dev" ];

  doCheck = true;

  checkPhase = ''
    patchShebangs .
    make -C test
  '';

  meta = with lib; {
    homepage = "https://urlan.sourceforge.net/boron/";
    description = "Scripting language and C library useful for building DSLs";
    license = licenses.lgpl3Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ mausch ];
  };
}