trying to use flakes to build the lisp system

This commit is contained in:
Chris Cochrun 2024-03-28 14:08:04 -05:00
parent 917f67c539
commit 4b406db27f
3 changed files with 48 additions and 34 deletions

View file

@ -15,7 +15,7 @@
sbclPackages,
makeWrapper,
openssl,
build-asdf-system,
# build-asdf-system,
pkgs,
...
}:
@ -36,7 +36,7 @@ let
pkgs.openssl.dev
]);
in
build-asdf-system {
stdenv.mkDerivation {
name = "tfcconnection";
pname = "tfcconnection";
version = "0.0.1";
@ -59,15 +59,15 @@ build-asdf-system {
# openssl.dev
];
# buildInputs = [
# # rustPlatform
# # clippy
# # rustfmt
# # openssl
# # openssl.out
# # openssl.dev
# sbcl'
# ];
buildInputs = [
# rustPlatform
# clippy
# rustfmt
# openssl
# openssl.out
# openssl.dev
sbcl'
];
nativeLibs = [
openssl
@ -75,33 +75,30 @@ build-asdf-system {
openssl.dev
];
lispLibs = with sbclPackages; [
hunchentoot
dexador
jzon
serapeum
deploy
spinneret
lass
cl-smtp
log4cl
];
# lispLibs = with sbclPackages; [
# hunchentoot
# dexador
# jzon
# serapeum
# deploy
# spinneret
# lass
# cl-smtp
# log4cl
# ];
# ${cargo}/bin/cargo build
# buildPhase = ''
# export HOME=$(pwd)
# ${sbcl'}/bin/sbcl --load build.lisp
# '';
buildPhase = ''
export HOME=$(pwd)
${sbcl'}/bin/sbcl --load build.lisp
'';
systems = "tfcserver";
# systems = "tfcserver";
buildScript = ./build.lisp;
# buildScript = ./build.lisp;
# cp target/debug/tfcapi $out/bin
installPhase = ''
mkdir -pv $out
cp -r * $out
rm -fv $out/tfcserver
mkdir -p $out/bin
cp -v tfcserver $out/bin
wrapProgram $out/bin/tfcserver \