2
1
Fork 0
quickshell-docs/default.nix

32 lines
467 B
Nix
Raw Normal View History

2024-03-09 14:26:27 +00:00
{
stdenv,
nix-gitignore,
hugo,
cargo,
just,
callPackage,
typegen ? (callPackage ./typegen {}),
srcpath ? ../src,
}: stdenv.mkDerivation {
name = "quickshell-docs";
version = "0.1.0";
src = nix-gitignore.gitignoreSource "/typegen\n" ./.;
buildInputs = [
just
hugo
typegen
];
buildPhase = ''
SRC_PATH="${srcpath}" TYPEGEN=typegen just build
'';
installPhase = ''
mkdir -p $out
cp -r ./public/* $out/
'';
}