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 clack
jzon jzon
serapeum serapeum
deploy
openssl openssl
openssl.out openssl.out
openssl.dev openssl.dev
]); ]);
in in
stdenv.mkDerivation rec { sbcl.buildASDFSystem {
name = "tfcconnection"; name = "tfcconnection";
pname = "tfcconnection"; pname = "tfcconnection";
version = "0.0.1"; version = "0.0.1";
@ -38,6 +37,23 @@ stdenv.mkDerivation rec {
hugo hugo
go go
sbcl' sbcl'
openssl
openssl.out
openssl.dev
];
nativeLibs = [
openssl
openssl.out
openssl.dev
];
lispLibs = with sbclPackages; [
hunchentoot
dexador
clack
jzon
serapeum
]; ];
buildPhase = '' buildPhase = ''
@ -48,8 +64,8 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp tfcapi $out/bin cp tfcapi $out/bin
# wrapProgram $out/bin/tfcapi \ wrapProgram $out/bin/tfcapi \
# --prefix LD_LIBRARY_PATH : $LD_LIBRARY_PATH \ --prefix LD_LIBRARY_PATH : $LD_LIBRARY_PATH \
''; '';
meta = with lib; { 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") #-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" (defsystem "tfcserver"
:version "0.1.0" :version "0.1.0"
@ -12,7 +12,7 @@
:description "Restful server to handle website pieces" :description "Restful server to handle website pieces"
:long-description "Restful server to handle website pieces" :long-description "Restful server to handle website pieces"
;; :in-order-to ((test-op (test-op "tfcserver-test"))) ;; :in-order-to ((test-op (test-op "tfcserver-test")))
:defsystem-depends-on (:deploy) ;; (ql:quickload "deploy") before ;; :defsystem-depends-on (:deploy) ;; (ql:quickload "deploy") before
:build-operation "deploy-op" ;; leave as is :build-operation "program-op" ;; leave as is
:build-pathname "tfcapi" :build-pathname "tfcapi"
:entry-point "tfc-server::main") :entry-point "tfc-server::main")