2023-01-28 14:22:37 +00:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, pubCache
|
|
|
|
, dart
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "moxxmpp-docs";
|
2023-04-04 14:03:42 +00:00
|
|
|
version = "0.3.0";
|
2023-01-28 14:22:37 +00:00
|
|
|
|
|
|
|
PUB_CACHE = "${pubCache}";
|
|
|
|
|
|
|
|
src = "${./..}/packages/moxxmpp";
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
|
|
|
|
(
|
|
|
|
set -x
|
|
|
|
echo $PUB_CACHE
|
|
|
|
${dart}/bin/dart pub get --no-precompile --offline
|
|
|
|
)
|
|
|
|
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
${dart}/bin/dart doc -o $out
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
}
|