trying to switch to using lisp but need to build it first
This commit is contained in:
parent
09b9e8fb5b
commit
ae37869c9f
8 changed files with 248 additions and 102 deletions
138
default.nix
138
default.nix
|
@ -1,37 +1,42 @@
|
|||
{
|
||||
stdenv,
|
||||
lib,
|
||||
hugo,
|
||||
go,
|
||||
cargo,
|
||||
rustc,
|
||||
clippy,
|
||||
rust-analyzer,
|
||||
rustfmt,
|
||||
# hugo,
|
||||
# go,
|
||||
# cargo,
|
||||
# rustc,
|
||||
# clippy,
|
||||
# rust-analyzer,
|
||||
# rustfmt,
|
||||
pkg-config,
|
||||
# sbcl,
|
||||
# sbclPackages,
|
||||
gcc,
|
||||
gnumake,
|
||||
sbcl,
|
||||
sbclPackages,
|
||||
makeWrapper,
|
||||
openssl,
|
||||
rustPlatform
|
||||
build-asdf-system,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
# let
|
||||
# sbcl' = sbcl.withPackages (ps: with ps; [
|
||||
# hunchentoot
|
||||
# dexador
|
||||
# jzon
|
||||
# serapeum
|
||||
# deploy
|
||||
# spinneret
|
||||
# lass
|
||||
# cl-smtp
|
||||
# # pkgs.openssl
|
||||
# # pkgs.openssl.out
|
||||
# # pkgs.openssl.dev
|
||||
# ]);
|
||||
# in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
let
|
||||
sbcl' = sbcl.withPackages (ps: with ps; [
|
||||
hunchentoot
|
||||
dexador
|
||||
jzon
|
||||
serapeum
|
||||
deploy
|
||||
spinneret
|
||||
lass
|
||||
cl-smtp
|
||||
log4cl
|
||||
pkgs.openssl
|
||||
pkgs.openssl.out
|
||||
pkgs.openssl.dev
|
||||
]);
|
||||
in
|
||||
build-asdf-system {
|
||||
name = "tfcconnection";
|
||||
pname = "tfcconnection";
|
||||
version = "0.0.1";
|
||||
|
@ -39,52 +44,67 @@ rustPlatform.buildRustPackage rec {
|
|||
src = ./.;
|
||||
|
||||
# cargoHash = "sha256-jtBw4ahSl88L0iuCXxQgZVm1EcboWRJMNtjxLVTtzts=";
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
# cargoLock = {
|
||||
# lockFile = ./Cargo.lock;
|
||||
# };
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
gcc
|
||||
stdenv
|
||||
gnumake
|
||||
pkg-config
|
||||
rustc
|
||||
cargo
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
# rustPlatform
|
||||
# clippy
|
||||
# rustfmt
|
||||
openssl
|
||||
makeWrapper
|
||||
# openssl
|
||||
# openssl.out
|
||||
# openssl.dev
|
||||
];
|
||||
|
||||
# nativeLibs = [
|
||||
# openssl
|
||||
# openssl.out
|
||||
# openssl.dev
|
||||
# buildInputs = [
|
||||
# # rustPlatform
|
||||
# # clippy
|
||||
# # rustfmt
|
||||
# # openssl
|
||||
# # openssl.out
|
||||
# # openssl.dev
|
||||
# sbcl'
|
||||
# ];
|
||||
|
||||
# lispLibs = with sbclPackages; [
|
||||
# hunchentoot
|
||||
# dexador
|
||||
# jzon
|
||||
# serapeum
|
||||
# deploy
|
||||
# spinneret
|
||||
# lass
|
||||
# cl-smtp
|
||||
# ];
|
||||
nativeLibs = [
|
||||
openssl
|
||||
openssl.out
|
||||
openssl.dev
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
export HOME=$(pwd)
|
||||
${cargo}/bin/cargo build
|
||||
'';
|
||||
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
|
||||
# '';
|
||||
|
||||
systems = "tfcserver";
|
||||
|
||||
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 target/debug/tfcapi $out/bin
|
||||
wrapProgram $out/bin/tfcapi \
|
||||
cp -v tfcserver $out/bin
|
||||
wrapProgram $out/bin/tfcserver \
|
||||
--prefix LD_LIBRARY_PATH : $LD_LIBRARY_PATH \
|
||||
'';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue