2017-05-19 10:30:05 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkgconfig
|
|
|
|
, libffi
|
|
|
|
, llvm_35
|
|
|
|
, doCheck ? false
|
|
|
|
, perl
|
|
|
|
}:
|
|
|
|
|
|
|
|
let version = "20170519";
|
2017-04-15 09:02:28 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "dale-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomhrr";
|
|
|
|
repo = "dale";
|
2017-05-19 10:30:05 +01:00
|
|
|
rev = "39e16d8e89fa070de65a673d4462e783d530f95a";
|
|
|
|
sha256 = "0dc5cjahv7lzlp92hidlh83rwgrpgb6xz2pnba2pm5xrv2pnsskl";
|
2017-04-15 09:02:28 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ cmake libffi llvm_35 ]
|
2017-05-19 10:30:05 +01:00
|
|
|
++ stdenv.lib.optional doCheck perl;
|
2017-04-15 09:02:28 +01:00
|
|
|
|
2017-06-22 08:10:08 +01:00
|
|
|
patches = [ ./link-llvm.patch ];
|
|
|
|
|
2017-04-15 09:02:28 +01:00
|
|
|
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.
|
|
|
|
'';
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/tomhrr/dale;
|
2017-04-19 06:23:03 +01:00
|
|
|
license = licenses.bsd3;
|
2017-04-15 09:02:28 +01:00
|
|
|
maintainers = with maintainers; [ amiloradovsky ];
|
2017-04-19 06:23:03 +01:00
|
|
|
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
|
2017-04-15 09:02:28 +01:00
|
|
|
};
|
|
|
|
}
|