-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from rigille/master
Fix build of kind-scm
- Loading branch information
Showing
9 changed files
with
43 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This folder contains various backends for Kind, `js` has the more mature javascript backend, `scm` has the scheme backend which won't stack overflow. |
Submodule ChezScheme
deleted from
bf49df
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
The scheme backend is built with Nix! First install nix: | ||
```bash | ||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install | ||
``` | ||
Here's an example `shell.nix` which has `kind-scm` available to use: | ||
```nix | ||
{ pkgs ? import <nixpkgs> {} }: | ||
let | ||
kind_legacy = pkgs.fetchFromGitHub { | ||
owner = "rigille"; | ||
repo = "Kind-Legacy"; | ||
rev = "2c5a96868296aeeed5260e9732ff7b052d0e9d43"; | ||
sha256 = "28c8325659e6d5883c604552e67470e09a59bd16156fa7f1e7e11623d36d62ad"; | ||
}; | ||
kind_scm = import "${kind_legacy}/bin/scm" { pkgs=pkgs; }; | ||
in | ||
pkgs.mkShell { | ||
buildInputs = [ | ||
kind_scm | ||
]; | ||
} | ||
``` | ||
Alternatively you can run `nix-env --file default.nix --install` and install `kind-scm` globally on your system. |
Submodule chez-exe
deleted from
937629
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
{ pkgs ? import <nixpkgs> {} }: | ||
pkgs.stdenv.mkDerivation { | ||
name = "kind-scm"; | ||
src = ./.; | ||
buildInputs = [ | ||
pkgs.chez | ||
]; | ||
buildPhase = '' | ||
cd src/ | ||
scheme compile.scm | ||
cd .. | ||
chmod +x bin/kind-scm | ||
''; | ||
installPhase = '' | ||
mkdir -p $out/bin | ||
mv bin/kind-scm $out/bin/kind-scm | ||
''; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.