Skip to content

marcuswhybrow/pagefind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unofficial Nix flake for Pagefind.

nix run github:marcuswhybrow/pagefind
nix run github:marcuswhybrow/pagefind#pagefind_extended

For use in your own flake:

{
  description = "Example website that uses Pagefind";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs";
    pagefind.url = "github:marcuswhybrow/pagefind";
  };

  outputs = let
    pkgs = import inputs.nixpkgs {
      system = "x86_64-linux";
      overlays = [inputs.pagefind.overlays.default];
    };
  in {
    packages.x86_64-linux.exampleWebsite = pkgs.mkDerivation {
      pname = "Example Website";
      version = "1.0.0";
      src = ./.;

      buildPhase = ''
        ${pkgs.pagefind}/bin/pagefind --site ./your_site_location
      '';
    };
  });
}

About

Nix package for Pagefind pre-built releases

Topics

Resources

Stars

Watchers

Forks

Languages