2021-01-23 13:15:07 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libck, darwin }:
|
2020-10-07 10:22:22 +00:00
|
|
|
|
|
|
|
let
|
2022-01-11 09:35:39 +00:00
|
|
|
version = "0.34.0";
|
2020-10-07 10:22:22 +00:00
|
|
|
bootstrap = stdenv.mkDerivation {
|
|
|
|
pname = "cyclone-bootstrap";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "justinethier";
|
|
|
|
repo = "cyclone-bootstrap";
|
|
|
|
rev = "v${version}";
|
2022-01-11 09:35:39 +00:00
|
|
|
sha256 = "sha256-kJBPb0Ej32HveY/vdGpH2gyxSwq8Xq7muneFIw3Y7hM=";
|
2020-10-07 10:22:22 +00:00
|
|
|
};
|
|
|
|
|
2020-10-10 09:57:21 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.isDarwin [ darwin.cctools ];
|
2020-10-07 10:22:22 +00:00
|
|
|
|
|
|
|
buildInputs = [ libck ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "cyclone";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "justinethier";
|
|
|
|
repo = "cyclone";
|
|
|
|
rev = "v${version}";
|
2022-01-11 09:35:39 +00:00
|
|
|
sha256 = "sha256-4U/uOTbFpPTC9BmO6Wkhy4PY8UCFVt5eHSGqrOlKT/U=";
|
2020-10-07 10:22:22 +00:00
|
|
|
};
|
|
|
|
|
2020-10-10 09:57:21 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-10-07 10:22:22 +00:00
|
|
|
nativeBuildInputs = [ bootstrap ]
|
2021-01-23 13:15:07 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ darwin.cctools ];
|
2020-10-07 10:22:22 +00:00
|
|
|
|
|
|
|
buildInputs = [ libck ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2020-10-07 10:22:22 +00:00
|
|
|
homepage = "https://justinethier.github.io/cyclone/";
|
|
|
|
description = "A brand-new compiler that allows practical application development using R7RS Scheme";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
};
|
|
|
|
}
|