2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2021-01-15 22:18:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, libffi
|
|
|
|
, llvm_6
|
|
|
|
, doCheck ? false
|
|
|
|
, perl
|
|
|
|
}:
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dale";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "20181024";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomhrr";
|
|
|
|
repo = "dale";
|
|
|
|
rev = "f5db8b486f4e7c423fc25941a8315f1209bc0e54";
|
|
|
|
sha256 = "0v4ajrzrqvf279kd7wsd9flrpsav57lzxlwwimk9vnfwh7xpzf9v";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ libffi llvm_6 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
inherit doCheck;
|
2021-01-15 22:18:51 +00:00
|
|
|
checkInputs = [ perl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkTarget = "tests";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|