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
|
2022-10-06 18:32:54 +00:00
|
|
|
, llvm_13
|
2020-04-24 23:36:52 +00:00
|
|
|
, perl
|
|
|
|
}:
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dale";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "20220411";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomhrr";
|
|
|
|
repo = "dale";
|
2022-10-06 18:32:54 +00:00
|
|
|
rev = "7386ef2d8912c60c6fb157a1e5cd772e15eaf658";
|
|
|
|
sha256 = "sha256-LNWqrFuEjtL7zuPTBfe4qQWr8IrT/ldQWSeDTK3Wqmo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config llvm_13.dev ];
|
|
|
|
buildInputs = [ libffi llvm_13 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ 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 ];
|
2022-10-06 18:32:54 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# failed on Darwin: linker couldn't find the FFI lib
|
|
|
|
};
|
|
|
|
}
|