summary refs log tree commit diff
path: root/pkgs/development/chez-modules/chez-mit/default.nix
blob: 3614e97d9eac3351c3642e5b7f9a6d09ec2cf156 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchgit, chez, chez-srfi }:

stdenv.mkDerivation {
  pname = "chez-mit";
  version = "1.0";

  src = fetchgit {
    url = "https://github.com/fedeinthemix/chez-mit.git";
    rev = "68f3d7562e77f694847dc74dabb5ecbd106cd6be";
    sha256 = "0c7i3b6i90xk96nmxn1pc9272a4yal4v40dm1a4ybdi87x53zkk0";
  };

  buildInputs = [ chez chez-srfi ];

  buildPhase = ''
    export CHEZSCHEMELIBDIRS=${chez-srfi}/lib/csv9.5-site
    make PREFIX=$out CHEZ=${chez}/bin/scheme
  '';

  installPhase = ''
    make install PREFIX=$out CHEZ=${chez}/bin/scheme
  '';

  doCheck = false;

  meta = {
    description = "This is a MIT/GNU Scheme compatibility library for Chez Scheme";
    homepage = https://github.com/fedeinthemix/chez-mit/;
    maintainers = [ stdenv.lib.maintainers.jitwit ];
    license = stdenv.lib.licenses.free;
  };

}