about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/chez-modules/chez-srfi/default.nix
blob: d821e6d015564be4423f3a51648174997fff7745 (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, lib, fetchFromGitHub, chez }:

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

  src = fetchFromGitHub {
    owner = "fedeinthemix";
    repo = "chez-srfi";
    rev = "5770486c2a85d0e3dd4ac62a97918e7c394ea507";
    sha256 = "sha256-8icdkbYmpTpossirFoulUhJY/8Jo+2eeaMwDftbZh+g=";
  };

  buildInputs = [ chez ];

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

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

  doCheck = false;

  meta = with lib; {
    description = "This package provides a collection of SRFI libraries for Chez Scheme";
    homepage = "https://github.com/fedeinthemix/chez-srfi/";
    maintainers = [ maintainers.jitwit ];
    license = licenses.x11;
  };

}