finally able to deploy lisp server

This commit is contained in:
Chris Cochrun 2023-06-15 07:21:17 -05:00
parent 652495516a
commit a4f71e474f
3 changed files with 23 additions and 16 deletions

View file

@ -17,13 +17,12 @@ let
clack
jzon
serapeum
deploy
openssl
openssl.out
openssl.dev
]);
in
stdenv.mkDerivation rec {
sbcl.buildASDFSystem {
name = "tfcconnection";
pname = "tfcconnection";
version = "0.0.1";
@ -38,6 +37,23 @@ stdenv.mkDerivation rec {
hugo
go
sbcl'
openssl
openssl.out
openssl.dev
];
nativeLibs = [
openssl
openssl.out
openssl.dev
];
lispLibs = with sbclPackages; [
hunchentoot
dexador
clack
jzon
serapeum
];
buildPhase = ''
@ -48,8 +64,8 @@ stdenv.mkDerivation rec {
installPhase = ''
mkdir -p $out/bin
cp tfcapi $out/bin
# wrapProgram $out/bin/tfcapi \
# --prefix LD_LIBRARY_PATH : $LD_LIBRARY_PATH \
wrapProgram $out/bin/tfcapi \
--prefix LD_LIBRARY_PATH : $LD_LIBRARY_PATH \
'';
meta = with lib; {

View file

@ -1,9 +0,0 @@
(load "~/quicklisp/setup.lisp")
(ql:quickload :parenscript)
(defpackage tfcconnection
(:use #:ps))
(in-package :tfcconnection)
(with-open-file (ps:*parenscript-stream* #P"~/dev/tfcconnection/static/js/health-form.js" :direction :output :if-exists :supersede) (ps:ps-compile-file #P"~/dev/tfcconnection/src/health-form.lisp"))

View file

@ -1,5 +1,5 @@
#-asdf3.1 (error "requires asdf 3.1")
#+linux (deploy:define-library deploy::compression-lib :dont-deploy T)
;; #+linux (deploy:define-library deploy::compression-lib :dont-deploy T)
(defsystem "tfcserver"
:version "0.1.0"
@ -12,7 +12,7 @@
:description "Restful server to handle website pieces"
:long-description "Restful server to handle website pieces"
;; :in-order-to ((test-op (test-op "tfcserver-test")))
:defsystem-depends-on (:deploy) ;; (ql:quickload "deploy") before
:build-operation "deploy-op" ;; leave as is
;; :defsystem-depends-on (:deploy) ;; (ql:quickload "deploy") before
:build-operation "program-op" ;; leave as is
:build-pathname "tfcapi"
:entry-point "tfc-server::main")