2017-05-19 11:30:05 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkgconfig
|
|
|
|
, libffi
|
2020-01-18 11:26:55 +01:00
|
|
|
, llvm_6
|
2017-05-19 11:30:05 +02:00
|
|
|
, doCheck ? false
|
|
|
|
, perl
|
|
|
|
}:
|
|
|
|
|
2020-01-18 11:26:55 +01:00
|
|
|
let version = "20181024";
|
2017-04-15 10:02:28 +02:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "dale";
|
|
|
|
inherit version;
|
2017-04-15 10:02:28 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomhrr";
|
|
|
|
repo = "dale";
|
2020-01-18 11:26:55 +01:00
|
|
|
rev = "f5db8b486f4e7c423fc25941a8315f1209bc0e54";
|
|
|
|
sha256 = "0v4ajrzrqvf279kd7wsd9flrpsav57lzxlwwimk9vnfwh7xpzf9v";
|
2017-04-15 10:02:28 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-01-18 11:26:55 +01:00
|
|
|
buildInputs = [ cmake libffi llvm_6 ]
|
2017-05-19 11:30:05 +02:00
|
|
|
++ stdenv.lib.optional doCheck perl;
|
2017-04-15 10:02:28 +02: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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/tomhrr/dale";
|
2017-04-19 07:23:03 +02:00
|
|
|
license = licenses.bsd3;
|
2017-04-15 10:02:28 +02:00
|
|
|
maintainers = with maintainers; [ amiloradovsky ];
|
2017-04-19 07:23:03 +02: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 10:02:28 +02:00
|
|
|
};
|
|
|
|
}
|