shell.nix and default.nix work right now
This commit is contained in:
parent
54dab680d6
commit
aee6d10404
5 changed files with 32 additions and 80 deletions
54
default.nix
54
default.nix
|
@ -1,13 +1,6 @@
|
|||
{
|
||||
stdenv,
|
||||
lib,
|
||||
# hugo,
|
||||
# go,
|
||||
# cargo,
|
||||
# rustc,
|
||||
# clippy,
|
||||
# rust-analyzer,
|
||||
# rustfmt,
|
||||
pkg-config,
|
||||
gcc,
|
||||
gnumake,
|
||||
|
@ -15,7 +8,6 @@
|
|||
sbclPackages,
|
||||
makeWrapper,
|
||||
openssl,
|
||||
# build-asdf-system,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
@ -31,79 +23,47 @@ let
|
|||
lass
|
||||
cl-smtp
|
||||
log4cl
|
||||
cffi
|
||||
buildapp
|
||||
pkgs.openssl
|
||||
pkgs.openssl.out
|
||||
pkgs.openssl.dev
|
||||
]);
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "tfcconnection";
|
||||
pkgs.sbcl.buildASDFSystem {
|
||||
pname = "tfcconnection";
|
||||
version = "0.0.1";
|
||||
|
||||
src = ./.;
|
||||
|
||||
# cargoHash = "sha256-jtBw4ahSl88L0iuCXxQgZVm1EcboWRJMNtjxLVTtzts=";
|
||||
# cargoLock = {
|
||||
# lockFile = ./Cargo.lock;
|
||||
# };
|
||||
|
||||
nativeBuildInputs = [
|
||||
gcc
|
||||
stdenv
|
||||
gnumake
|
||||
pkg-config
|
||||
makeWrapper
|
||||
openssl
|
||||
openssl.out
|
||||
openssl.dev
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
# rustPlatform
|
||||
# clippy
|
||||
# rustfmt
|
||||
openssl
|
||||
openssl.out
|
||||
openssl.dev
|
||||
propagatedBuildInputs = [
|
||||
pkg-config
|
||||
sbcl'
|
||||
];
|
||||
|
||||
nativeLibs = [
|
||||
openssl
|
||||
openssl.out
|
||||
openssl.dev
|
||||
];
|
||||
|
||||
# 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
|
||||
make api
|
||||
'';
|
||||
|
||||
# systems = "tfcserver";
|
||||
|
||||
# buildScript = ./build.lisp;
|
||||
|
||||
# cp target/debug/tfcapi $out/bin
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -v tfcserver $out/bin
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.lib.makeLibraryPath [ sbcl' openssl.dev openssl.out openssl pkg-config ]}"
|
||||
wrapProgram $out/bin/tfcserver \
|
||||
--prefix LD_LIBRARY_PATH : $LD_LIBRARY_PATH \
|
||||
--prefix SBCL_HOME : ${sbcl'}/lib/sbcl/sbcl.core \
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue