nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchurl
4, zlib
5}:
6
7stdenv.mkDerivation rec {
8 pname = "boron";
9 version = "2.1.0";
10
11 src = fetchurl {
12 url = "https://sourceforge.net/projects/urlan/files/Boron/boron-${version}.tar.gz";
13 sha256 = "sha256-50HKcK2hQpe9k9RIoVa/N5krTRKlW9AsGYTmHITx7Nc=";
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 mainProgram = "boron";
44 license = licenses.lgpl3Plus;
45 platforms = platforms.linux;
46 maintainers = with maintainers; [ mausch ];
47 };
48}
49