35 lines
676 B
Nix
35 lines
676 B
Nix
{
|
|
stdenvNoCC,
|
|
nodejs,
|
|
pnpm,
|
|
liminalOSDocs,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "alexandria";
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [
|
|
nodejs
|
|
pnpm.configHook
|
|
];
|
|
|
|
pnpmDeps = pnpm.fetchDeps {
|
|
inherit (finalAttrs) pname version src;
|
|
hash = "sha256-HXsgQUY9pB4ZFjInAbeye87w8+UL2npodKgnNg697LM=";
|
|
};
|
|
|
|
buildPhase = ''
|
|
mv ./content/Hacks/liminalOS-docs.md ./liminalOS-docs_tmp
|
|
cat ./liminalOS-docs_tmp ${liminalOSDocs} >> ./content/Hacks/liminalOS-docs.md
|
|
rm ./liminalOS-docs_tmp
|
|
|
|
node ./quartz/bootstrap-cli.mjs build
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
mv public/ $out/public/
|
|
'';
|
|
})
|