about summary refs log blame commit diff
path: root/third_party/lisp/lisp-binary.nix
blob: 296112cc9e9a3d8d7119b407f7421a3709b49246 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                            
                     
 
   
                                                   

                             

                       
                                       
              
        
              


                 









                                   
                
    

              
                                                            
    
 
# A library to easily read and write complex binary formats.
{ depot, pkgs, ... }:

let
  src = pkgs.srcOnly pkgs.lispPackages.lisp-binary;
in
depot.nix.buildLisp.library {
  name = "lisp-binary";

  deps = with depot.third_party.lisp; [
    alexandria
    cffi
    closer-mop
    flexi-streams
    moptilities
    quasiquote_2
  ];

  srcs = map (f: src + ("/" + f)) [
    "utils.lisp"
    "integer.lisp"
    "float.lisp"
    "simple-bit-stream.lisp"
    "reverse-stream.lisp"
    "binary-1.lisp"
    "binary-2.lisp"
    "types.lisp"
  ];

  brokenOn = [
    "ecl" # TODO(sterni): disable conditionally cffi for ECL
  ];
}