about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/dale/default.nix
blob: cbe4e7ec92600fcec5f9fda776d60572c8431ddc (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
{ stdenv
, fetchFromGitHub
, cmake
, pkgconfig
, libffi
, llvm_6
, doCheck ? false
, perl
}:

let version = "20181024";

in stdenv.mkDerivation {
  pname = "dale";
  inherit version;

  src = fetchFromGitHub {
    owner = "tomhrr";
    repo = "dale";
    rev = "f5db8b486f4e7c423fc25941a8315f1209bc0e54";
    sha256 = "0v4ajrzrqvf279kd7wsd9flrpsav57lzxlwwimk9vnfwh7xpzf9v";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ cmake libffi llvm_6 ]
             ++ stdenv.lib.optional doCheck perl;

  inherit doCheck;

  checkTarget = "tests";

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "Lisp-flavoured C";
    longDescription = ''
      Dale is a system (no GC) programming language that uses
      S-expressions for syntax and supports syntactic macros.
    '';
    homepage = "https://github.com/tomhrr/dale";
    license = licenses.bsd3;
    maintainers = with maintainers; [ amiloradovsky ];
    platforms = with platforms; [ "i686-linux" "x86_64-linux" ];
    # failed on Darwin: linker couldn't find the FFI lib
    # failed on AArch64: because LLVM 3.5 is failed there
  };
}