nixpkgs/pkgs/development/interpreters/cyclone/default.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, libck, darwin }:
2020-10-07 10:22:22 +00:00
let
version = "0.30.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}";
sha256 = "sha256-/zAcCBdJ7YQXsspdjrMca1Oj9SUUFXQKLwZPoZLhHYg=";
2020-10-07 10:22:22 +00:00
};
2020-10-10 09:57:21 +00:00
enableParallelBuilding = true;
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}";
sha256 = "sha256-a3wiqKlIbnvIhyrI0lyVGciQiM7KSuYH5iUfGFrgOuM=";
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 ]
++ lib.optionals stdenv.isDarwin [ darwin.cctools ];
2020-10-07 10:22:22 +00:00
buildInputs = [ libck ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
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 ];
};
}