nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv
2, fetchFromGitHub
3, cmake
4, pkg-config
5, libffi
6, llvm_13
7, perl
8}:
9
10stdenv.mkDerivation {
11 pname = "dale";
12 version = "20220411";
13
14 src = fetchFromGitHub {
15 owner = "tomhrr";
16 repo = "dale";
17 rev = "7386ef2d8912c60c6fb157a1e5cd772e15eaf658";
18 sha256 = "sha256-LNWqrFuEjtL7zuPTBfe4qQWr8IrT/ldQWSeDTK3Wqmo=";
19 };
20
21 nativeBuildInputs = [ cmake pkg-config llvm_13.dev ];
22 buildInputs = [ libffi llvm_13 ];
23
24 nativeCheckInputs = [ perl ];
25
26 checkTarget = "tests";
27
28 meta = with lib; {
29 description = "Lisp-flavoured C";
30 longDescription = ''
31 Dale is a system (no GC) programming language that uses
32 S-expressions for syntax and supports syntactic macros.
33 '';
34 homepage = "https://github.com/tomhrr/dale";
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ amiloradovsky ];
37 platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
38 # failed on Darwin: linker couldn't find the FFI lib
39 };
40}