about summary refs log tree commit diff
path: root/third_party/lisp/cl-ppcre.nix
blob: 7cb99db639fde196ff14d16d9daec1de3abff649 (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
34
35
36
37
38
39
# cl-ppcre is a Common Lisp regular expression library.
{ depot, pkgs, ... }:

let src = with pkgs; srcOnly lispPackages.cl-ppcre;
in depot.nix.buildLisp.library {
  name = "cl-ppcre";

  srcs = map (f: src + ("/" + f)) [
    "packages.lisp"
    "specials.lisp"
    "util.lisp"
    "errors.lisp"
    "charset.lisp"
    "charmap.lisp"
    "chartest.lisp"
    "lexer.lisp"
    "parser.lisp"
    "regex-class.lisp"
    "regex-class-util.lisp"
    "convert.lisp"
    "optimize.lisp"
    "closures.lisp"
    "repetition-closures.lisp"
    "scanner.lisp"
    "api.lisp"
  ];

  passthru = {
    unicode = depot.nix.buildLisp.library {
      name = "cl-ppcre-unicode";
      deps = with depot.third_party.lisp; [ cl-ppcre cl-unicode ];

      srcs = map (f: src + ("/cl-ppcre-unicode/" + f)) [
        "packages.lisp"
        "resolver.lisp"
      ];
    };
  };
}