Skip to content

Commit

Permalink
Merge pull request #1 from rigille/master
Browse files Browse the repository at this point in the history
Fix build of kind-scm
  • Loading branch information
VictorTaelin authored Apr 12, 2023
2 parents 4ed4491 + dfa6e7a commit 5a6a5e2
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 144 deletions.
1 change: 1 addition & 0 deletions bin/README.md
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.
1 change: 0 additions & 1 deletion bin/scm/ChezScheme
Submodule ChezScheme deleted from bf49df
23 changes: 23 additions & 0 deletions bin/scm/README.md
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.
1 change: 0 additions & 1 deletion bin/scm/chez-exe
Submodule chez-exe deleted from 937629
19 changes: 19 additions & 0 deletions bin/scm/default.nix
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
'';
}
6 changes: 0 additions & 6 deletions bin/scm/kind-scm_1.0.1-0_amd64/DEBIAN/control

This file was deleted.

10 changes: 0 additions & 10 deletions bin/scm/kind-scm_1.0.1-0_amd64/DEBIAN/copyright

This file was deleted.

42 changes: 0 additions & 42 deletions flake.lock

This file was deleted.

84 changes: 0 additions & 84 deletions flake.nix

This file was deleted.

0 comments on commit 5a6a5e2

Please sign in to comment.