2021-01-23 14:15:07 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libck, darwin }:
|
2020-10-07 12:22:22 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "0.21";
|
|
|
|
bootstrap = stdenv.mkDerivation {
|
|
|
|
pname = "cyclone-bootstrap";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "justinethier";
|
|
|
|
repo = "cyclone-bootstrap";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0bb3a7x7vzmdyhm4nilm8bcn4q50pwqryggnxz21n16v6xakwjmr";
|
|
|
|
};
|
|
|
|
|
2020-10-10 11:57:21 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-23 14:15:07 +01:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.isDarwin [ darwin.cctools ];
|
2020-10-07 12:22:22 +02:00
|
|
|
|
|
|
|
buildInputs = [ libck ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "cyclone";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "justinethier";
|
|
|
|
repo = "cyclone";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1vb4yaprs2bwbxmxx2zkqvysxx8r9qww2q1nqkz8yps3ji715jw7";
|
|
|
|
};
|
|
|
|
|
2020-10-10 11:57:21 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-10-07 12:22:22 +02:00
|
|
|
nativeBuildInputs = [ bootstrap ]
|
2021-01-23 14:15:07 +01:00
|
|
|
++ lib.optionals stdenv.isDarwin [ darwin.cctools ];
|
2020-10-07 12:22:22 +02:00
|
|
|
|
|
|
|
buildInputs = [ libck ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-23 14:15:07 +01:00
|
|
|
meta = with lib; {
|
2020-10-07 12:22:22 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|