2
1
Fork 0
quickshell-docs/default.nix
2024-03-09 06:28:20 -08:00

32 lines
467 B
Nix

{
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/
'';
}