2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv
|
2017-05-19 10:30:05 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2020-12-31 07:48:55 +00:00
|
|
|
, pkg-config
|
2017-05-19 10:30:05 +01:00
|
|
|
, libffi
|
2020-01-18 10:26:55 +00:00
|
|
|
, llvm_6
|
2017-05-19 10:30:05 +01:00
|
|
|
, doCheck ? false
|
|
|
|
, perl
|
|
|
|
}:
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "dale";
|
2020-12-31 07:48:55 +00:00
|
|
|
version = "20181024";
|
2017-04-15 09:02:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomhrr";
|
|
|
|
repo = "dale";
|
2020-01-18 10:26:55 +00:00
|
|
|
rev = "f5db8b486f4e7c423fc25941a8315f1209bc0e54";
|
|
|
|
sha256 = "0v4ajrzrqvf279kd7wsd9flrpsav57lzxlwwimk9vnfwh7xpzf9v";
|
2017-04-15 09:02:28 +01:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ libffi llvm_6 ];
|
2017-04-15 09:02:28 +01:00
|
|
|
|
|
|
|
inherit doCheck;
|
2020-12-31 07:48:55 +00:00
|
|
|
checkInputs = [ perl ];
|
2017-04-15 09:02:28 +01:00
|
|
|
|
|
|
|
checkTarget = "tests";
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2017-04-15 09:02:28 +01:00
|
|
|
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 02:11:51 +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
|
|
|
};
|
|
|
|
}
|