diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2020-10-07 17:22:22 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2020-10-09 11:51:29 +0700 |
commit | e3b083effc69fa979760c97a0525ad090bb0adee (patch) | |
tree | 1543fc100df95362f529831c1ab5f8203088d0c2 /pkgs/development/interpreters/cyclone | |
parent | 9ae60c874749f2bdbfb1ffb1249621f050410ad7 (diff) |
cyclone-scheme: init at 0.21
Diffstat (limited to 'pkgs/development/interpreters/cyclone')
-rw-r--r-- | pkgs/development/interpreters/cyclone/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/cyclone/default.nix b/pkgs/development/interpreters/cyclone/default.nix new file mode 100644 index 0000000000000..5111cbeb2e3b8 --- /dev/null +++ b/pkgs/development/interpreters/cyclone/default.nix @@ -0,0 +1,47 @@ +{ stdenv, fetchFromGitHub, libck, darwin }: + +let + version = "0.21"; + bootstrap = stdenv.mkDerivation { + pname = "cyclone-bootstrap"; + inherit version; + + src = fetchFromGitHub { + owner = "justinethier"; + repo = "cyclone-bootstrap"; + rev = "v${version}"; + sha256 = "0bb3a7x7vzmdyhm4nilm8bcn4q50pwqryggnxz21n16v6xakwjmr"; + }; + + nativeBuildInputs = stdenv.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 = "1vb4yaprs2bwbxmxx2zkqvysxx8r9qww2q1nqkz8yps3ji715jw7"; + }; + + nativeBuildInputs = [ bootstrap ] + ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools ]; + + buildInputs = [ libck ]; + + makeFlags = [ "PREFIX=${placeholder "out"}" ]; + + meta = with stdenv.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 ]; + }; +} |