mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
picolisp: include httpGate tool
https://software-lab.de/doc/httpGate.html httpGate is a central element of the PicoLisp application server architecture. Its purpose is to perform the following tasks: * Provide a single application entry port (e.g. 80 or 443). * Allow PicoLisp applications to run as non-root. * Start application servers on demand. * Handle HTTPS/SSL communication.
This commit is contained in:
parent
3775ef0acd
commit
0e6843b46f
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, jdk, w3m, makeWrapper }:
|
||||
{ stdenv, fetchurl, jdk, w3m, openssl, makeWrapper }:
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
|||
url = "https://www.software-lab.de/${name}.tgz";
|
||||
sha256 = "0hvgq2vc03bki528jqn95xmvv7mw8xx832spfczhxc16wwbrnrhk";
|
||||
};
|
||||
buildInputs = [makeWrapper] ++ optional stdenv.is64bit jdk;
|
||||
buildInputs = [makeWrapper openssl] ++ optional stdenv.is64bit jdk;
|
||||
patchPhase = ''
|
||||
sed -i "s/which java/command -v java/g" mkAsm
|
||||
|
||||
|
@ -23,6 +23,9 @@ stdenv.mkDerivation rec {
|
|||
''}
|
||||
'';
|
||||
sourceRoot = ''picoLisp/src${optionalString stdenv.is64bit "64"}'';
|
||||
postBuild = ''
|
||||
cd ../src; make gate
|
||||
'';
|
||||
installPhase = ''
|
||||
cd ..
|
||||
|
||||
|
@ -30,6 +33,7 @@ stdenv.mkDerivation rec {
|
|||
cp -r . "$out/share/picolisp/build-dir"
|
||||
ln -s "$out/share/picolisp/build-dir" "$out/lib/picolisp"
|
||||
ln -s "$out/lib/picolisp/bin/picolisp" "$out/bin/picolisp"
|
||||
ln -s "$out/lib/picolisp/bin/httpGate" "$out/bin/httpGate"
|
||||
|
||||
|
||||
makeWrapper $out/bin/picolisp $out/bin/pil \
|
||||
|
|
Loading…
Reference in a new issue