nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchurl
4, fetchpatch
5, gperf
6, guile
7, guile-lib
8, libffi
9, pkg-config
10}:
11
12stdenv.mkDerivation rec {
13 pname = "guile-reader";
14 version = "0.6.3";
15
16 src = fetchurl {
17 url = "http://download.savannah.nongnu.org/releases/${pname}/${pname}-${version}.tar.gz";
18 hash = "sha256-OMK0ROrbuMDKt42QpE7D6/9CvUEMW4SpEBjO5+tk0rs=";
19 };
20
21 nativeBuildInputs = [
22 pkg-config
23 ];
24 buildInputs = [
25 gperf
26 guile
27 guile-lib
28 libffi
29 ];
30
31 GUILE_SITE="${guile-lib}/share/guile/site";
32
33 configureFlags = [ "--with-guilemoduledir=$(out)/share/guile/site" ];
34
35 meta = with lib; {
36 homepage = "https://www.nongnu.org/guile-reader/";
37 description = "A simple framework for building readers for GNU Guile";
38 longDescription = ''
39 Guile-Reader is a simple framework for building readers for GNU Guile.
40
41 The idea is to make it easy to build procedures that extend Guile's read
42 procedure. Readers supporting various syntax variants can easily be
43 written, possibly by re-using existing "token readers" of a standard
44 Scheme readers. For example, it is used to implement Skribilo's
45 R5RS-derived document syntax.
46 '';
47 license = licenses.lgpl3Plus;
48 maintainers = with maintainers; [ AndersonTorres ];
49 platforms = platforms.gnu;
50 };
51}