Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
67 lines
1.6 KiB
Nix
67 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
fetchYarnDeps,
|
|
nodejs,
|
|
fixup-yarn-lock,
|
|
yarn,
|
|
yarnConfigHook,
|
|
yarnBuildHook,
|
|
makeWrapper,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lasuite-docs-collaboration-server";
|
|
version = "3.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "suitenumerique";
|
|
repo = "docs";
|
|
tag = "v${version}";
|
|
hash = "sha256-8bD+rBEN0GEQz3tiPEQYmf/mpijPefFmQchGhYkVBVY=";
|
|
};
|
|
|
|
sourceRoot = "source/src/frontend";
|
|
|
|
offlineCache = fetchYarnDeps {
|
|
yarnLock = "${src}/src/frontend/yarn.lock";
|
|
hash = "sha256-b4JBjJUB1i9jYSy+RFkXKmq6rzp28xHLdPNSH0QO1Ek=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
nodejs
|
|
fixup-yarn-lock
|
|
yarn
|
|
yarnConfigHook
|
|
yarnBuildHook
|
|
makeWrapper
|
|
];
|
|
|
|
yarnBuildScript = "COLLABORATION_SERVER";
|
|
yarnBuildFlags = "run build";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/{lib,bin}
|
|
cp -r {apps,node_modules,packages,servers} $out/lib
|
|
|
|
makeWrapper ${lib.getExe nodejs} "$out/bin/docs-collaboration-server" \
|
|
--add-flags "$out/lib/servers/y-provider/dist/start-server.js" \
|
|
--set NODE_PATH "$out/lib/node_modules"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Collaborative note taking, wiki and documentation platform that scales. Built with Django and React. Opensource alternative to Notion or Outline";
|
|
homepage = "https://github.com/suitenumerique/docs";
|
|
changelog = "https://github.com/suitenumerique/docs/blob/${src.tag}/CHANGELOG.md";
|
|
mainProgram = "docs-collaboration-server";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ soyouzpanda ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|