21cecf6002
GitOrigin-RevId: dd14e5d78e90a2ccd6007e569820de9b4861a6c2
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, libck, darwin }:
|
|
|
|
let
|
|
version = "0.30.0";
|
|
bootstrap = stdenv.mkDerivation {
|
|
pname = "cyclone-bootstrap";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "justinethier";
|
|
repo = "cyclone-bootstrap";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/zAcCBdJ7YQXsspdjrMca1Oj9SUUFXQKLwZPoZLhHYg=";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isDarwin [ darwin.cctools ];
|
|
|
|
buildInputs = [ libck ];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
};
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "cyclone";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "justinethier";
|
|
repo = "cyclone";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-a3wiqKlIbnvIhyrI0lyVGciQiM7KSuYH5iUfGFrgOuM=";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ bootstrap ]
|
|
++ lib.optionals stdenv.isDarwin [ darwin.cctools ];
|
|
|
|
buildInputs = [ libck ];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|