link seafile components together

This commit is contained in:
Trolli Schmittlauch 2019-10-09 00:56:46 +02:00
parent 5ff14cd08a
commit 2d8350f62a

View file

@ -30,7 +30,8 @@
owner = "haiwen"; owner = "haiwen";
repo = "seahub"; repo = "seahub";
rev = "v${version}-server"; rev = "v${version}-server";
sha256 = "sha256:1aypbqrv30x9mmhiwcmkmzmac0mw0gx7cb1n4x90h46iqlbanhnq"; #sha256 = "sha256:1aypbqrv30x9mmhiwcmkmzmac0mw0gx7cb1n4x90h46iqlbanhnq";
sha256 = "sha256:19f9279zqkfy39gs1qfaj0m8asva5jgadh8f0yln8ln4khsrcnk8";
}; };
phases = [ "installPhase" "fixupPhase" "distPhase" ]; phases = [ "installPhase" "fixupPhase" "distPhase" ];
installPhase = '' installPhase = ''
@ -85,5 +86,10 @@
++ lib.optional withMysql libmysql; ++ lib.optional withMysql libmysql;
phases = [ "installPhase" "fixupPhase" "distPhase" ]; phases = [ "installPhase" "fixupPhase" "distPhase" ];
# todo: create data directory in /srv in activation script # todo: create data directory in /srv in activation script
inherit seafile-server-core; installPhase = ''
mkdir "$out"
cd "$out"
ln -s ${seahub} seahub
ln -s ${seafile-server-core} seafile-core
'';
} }