Giter Club home page Giter Club logo

pagefind's Introduction

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
      '';
    };
  });
}

pagefind's People

Contributors

marcuswhybrow avatar

Watchers

 avatar  avatar

pagefind's Issues

pagefind_extended overlay doesn't work

pkgs.pagefind_extended isn't working for me when the overlay is applied:

{
  descripription = "Example flake.nix"
  inputs = {
    nixpkgs.url = "";
    pagefind.url = "github:marcuswhybrow/pagefind";
  };
  outputs.packages.x86_64-linux.example = let 
    pkgs = import inputs.nixpkgs {
      overlays = [inputs.pagefind.overlays.pagefind_extended];
      inherit system;
    };
  in pkgs.mkDerivation {
    pname = "Example";
    version = "0.1.0";
    src = ./.;
    buildPhase = ''
      ${pkgs.pagefind_extended}/bin/pagefind_extended --site ./build
    '';
  };
}

I have no idea why.

The package is available despite the overlay failing. This works.

    buildPhase = ''
      ${inputs.pagefind.packages.x86_64-linux.pagefind_extended}/bin/pagefind_extended --site ./build
    '';
  };
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.