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