trying to use flakes to build the lisp system
This commit is contained in:
parent
917f67c539
commit
4b406db27f
3 changed files with 48 additions and 34 deletions
59
default.nix
59
default.nix
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue