8361b82d0a
In preparation for the solution of b/108, we need to consistently use `depot.third_party` for packages that are only packed in the TVL depot and `pkgs` for things that come from nixpkgs. This commit cleans up a huge chunk of these uses in //third_party Change-Id: Ic382c0cdea7330a84d5f0b7d109c824ddceb94e7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2912 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
30 lines
652 B
Nix
30 lines
652 B
Nix
# A library to easily read and write complex binary formats.
|
|
{ depot, pkgs, ... }:
|
|
|
|
let src = pkgs.fetchFromGitHub {
|
|
owner = "j3pic";
|
|
repo = "lisp-binary";
|
|
rev = "1aefc8618b7734f68697ddf59bc93cb8522aa0bf";
|
|
sha256 = "1hflzn3mjp32jz9fxx9wayp3c3x58s77cgjfbs06nrynqkv0c6df";
|
|
};
|
|
in depot.nix.buildLisp.library {
|
|
name = "lisp-binary";
|
|
|
|
deps = with depot.third_party.lisp; [
|
|
cffi
|
|
quasiquote_2
|
|
moptilities
|
|
flexi-streams
|
|
closer-mop
|
|
];
|
|
|
|
srcs = map (f: src + ("/" + f)) [
|
|
"utils.lisp"
|
|
"integer.lisp"
|
|
"float.lisp"
|
|
"simple-bit-stream.lisp"
|
|
"reverse-stream.lisp"
|
|
"binary-1.lisp"
|
|
"binary-2.lisp"
|
|
];
|
|
}
|