2023-11-26 19:55:37 +05:30
|
|
|
{ stdenvNoCC
|
|
|
|
, mdbook
|
|
|
|
,
|
2023-07-11 23:07:36 +05:30
|
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "wiki";
|
2023-11-26 19:55:37 +05:30
|
|
|
version = "2023-11-26";
|
2023-07-11 23:07:36 +05:30
|
|
|
src = ./.;
|
2023-11-26 19:55:37 +05:30
|
|
|
buildInputs = [ mdbook ];
|
2023-07-11 23:07:36 +05:30
|
|
|
buildPhase = ''
|
|
|
|
mdbook build
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
2023-10-28 05:01:42 +05:30
|
|
|
mkdir -p $out/share
|
|
|
|
cp -r book $out/share/web
|
2023-07-11 23:07:36 +05:30
|
|
|
'';
|
|
|
|
}
|