nixpkgs/pkgs/development/compilers/dale/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
973 B
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, libffi
2022-10-02 11:44:27 +00:00
, llvm_13
, perl
}:
stdenv.mkDerivation {
2019-08-13 21:52:01 +00:00
pname = "dale";
2022-10-02 11:44:27 +00:00
version = "20220411";
src = fetchFromGitHub {
owner = "tomhrr";
repo = "dale";
2022-10-02 11:44:27 +00:00
rev = "7386ef2d8912c60c6fb157a1e5cd772e15eaf658";
sha256 = "sha256-LNWqrFuEjtL7zuPTBfe4qQWr8IrT/ldQWSeDTK3Wqmo=";
};
2022-10-02 11:44:27 +00:00
nativeBuildInputs = [ cmake pkg-config llvm_13.dev ];
buildInputs = [ libffi llvm_13 ];
nativeCheckInputs = [ perl ];
checkTarget = "tests";
meta = with lib; {
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-02 11:44:27 +00:00
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
# failed on Darwin: linker couldn't find the FFI lib
};
}