Initial attempt at a lisp library repo for fudo

This commit is contained in:
Niten 2020-11-23 14:02:36 -08:00
commit 541b52294c
4 changed files with 109 additions and 0 deletions

26
backplane-server.nix Normal file
View File

@ -0,0 +1,26 @@
{ pkgs, lib, fudoLispPackages, ... }:
let
unstablePkgs = import <nixos-unstable> {};
upstreamPackages = with pkgs.lispPackages; [
alexandria
arrows
cl-json
cl-postgres
cl-ppcre
cl_plus_ssl
unstablePkgs.lispPackages.postmodern
trivia
];
localPackages = with fudoLispPackages; [
cl-xmpp
cl-xmpp-tls
];
in lib.buildLisp.library {
name = "backplane-server";
srcs = "./backplane-server.lisp";
deps = upstreamPackages ++ localPackages;
}

20
cl-sasl.nix Normal file
View File

@ -0,0 +1,20 @@
{ pkgs, lib, fudoLispPackages, ... }
let
cl-sasl-path = lib.fetchgit {
url = "https://github.com/legoscia/cl-sasl.git";
rev = "64f195c0756cb80fa5961c072b62907be20a7380";
sha256 = "0a05q8rls2hn46rbbk6w5km9kqvhsj365zlw6hp32724xy2nd98w";
fetchSubmodules = false;
};
in lib.buildLisp.library {
name = "cl-sasl";
srcs = [
"${cl-sasl-path}/packages.lisp"
"${cl-sasl-path}/util.lisp"
"${cl-sasl-path}/client.lisp"
"${cl-sasl-path}/plain.lisp"
"${cl-sasl-path}/digest-md5.lisp"
];
}

55
cl-xmpp.nix Normal file
View File

@ -0,0 +1,55 @@
{ pkgs, lib, fudoLispPackages, ... }:
let
unstablePkgs = import <nixos-unstable> {};
cl-xmpp-path = lib.fetchgit {
url = "https://github.com/j4yk/cl-xmpp.git";
rev = "a0f206e583c72d80523bdf108e7d507597555c6d";
sha256 = "16qwm7yvwi73q07rsg0i5wrxbv44wm75m3710ph0vf1lzdkrsizk";
fetchSubmodules = false;
};
in {
cl-xmpp = lib.buildLisp.library {
name = "cl-xmpp";
srcs = [
"${cl-xmpp-path}/package.lisp"
"${cl-xmpp-path}/variable.lisp"
"${cl-xmpp-path}/utility.lisp"
"${cl-xmpp-path}/result.lisp"
"${cl-xmpp-path}/cl-xmpp.lisp"
"${cl-xmpp-path}/multi-user-chat.lisp"
"${cl-xmpp-path}/administration.lisp"
];
deps = with pkgs.lispPackages; [
cxml
ironclad
usocket
];
};
cl-xmpp-sasl = lib.buildLisp.library {
name = "cl-xmpp-sasl";
src = [
"${cl-xmpp-path}/cl-xmpp-sasl.lisp"
];
deps = with pkgs.lispPackages; [
cl-base64
fudoLispPackages.cl-sasl
cl-xmpp
];
};
cl-xmpp-tls = lib.buildLisp.library {
name = "cl-xmpp-tls";
src = [
"${cl-xmpp-path}/cl-xmpp-tls.lisp"
];
deps = with pkgs.lispPackages; [
cl_plus_ssl
cl-xmpp-sasl
];
};
}

8
default.nix Normal file
View File

@ -0,0 +1,8 @@
{ lib, ... }:
with lib;
{
cl-sasl = import cl-sasl.nix {};
cl-xmpp = import cl-xmpp.nix {};
# backplane-server = import backplane-server.nix {};
}