Unverified Commit 7b6a4f54 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

haunt: cleanup (#487788)

parents bf1e7d3d dd8bb15c
Loading
Loading
Loading
Loading
+29 −22
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchgit,
  autoreconfHook,
  texinfo,
  fetchgit,
  gitUpdater,
  guile,
  guile-commonmark,
  guile-reader,
  lib,
  makeBinaryWrapper,
  pkg-config,
  gitUpdater,
  stdenv,
  texinfo,
  versionCheckHook,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -22,8 +23,11 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-i6MI0eaRiA/JNgkIBJGLAsqMnyJz47aavyD6kOL7sqU=";
  };

  strictDeps = true;

  nativeBuildInputs = [
    autoreconfHook
    guile
    makeBinaryWrapper
    pkg-config
    texinfo
@@ -38,37 +42,40 @@ stdenv.mkDerivation (finalAttrs: {
  doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;

  postInstall = ''
    wrapProgram $out/bin/haunt \
    wrapProgram $out/bin/${finalAttrs.meta.mainProgram} \
      --prefix GUILE_LOAD_PATH : "$out/${guile.siteDir}:$GUILE_LOAD_PATH" \
      --prefix GUILE_LOAD_COMPILED_PATH : "$out/${guile.siteCcacheDir}:$GUILE_LOAD_COMPILED_PATH"
  '';

  passthru = {
    updateScript = gitUpdater { rev-prefix = "v"; };
  };
  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];

  passthru.updateScript = gitUpdater { rev-prefix = "v"; };

  meta = {
    homepage = "https://dthompson.us/projects/haunt.html";
    description = "Guile-based static site generator";
    mainProgram = "haunt";
    longDescription = ''
      Haunt is a simple, functional, hackable static site generator that gives
      authors the ability to treat websites as Scheme programs.
      Haunt is a simple, functional, hackable static site generator
      that gives authors the ability to treat websites as Scheme
      programs.

      By giving authors the full expressive power of Scheme, they are able to
      control every aspect of the site generation process. Haunt provides a
      simple, functional build system that can be easily extended for this
      purpose.
      By giving authors the full expressive power of Scheme, they are
      able to control every aspect of the site generation process.
      Haunt provides a simple, functional build system that can be
      easily extended for this purpose.

      Haunt has no opinion about what markup language authors should use to
      write posts, though it comes with support for the popular Markdown
      format. Likewise, Haunt has no opinion about how authors structure their
      sites. Though it comes with support for building simple blogs or Atom
      feeds, authors should feel empowered to tweak, replace, or create builders
      to do things that aren't provided out-of-the-box.
      Haunt has no opinion about what markup language authors should
      use to write posts, though it comes with support for the popular
      Markdown format.  Likewise, Haunt has no opinion about how
      authors structure their sites.  Though it comes with support for
      building simple blogs or Atom feeds, authors should feel
      empowered to tweak, replace, or create builders to do things
      that aren't provided out-of-the-box.
    '';
    license = lib.licenses.gpl3Plus;
    maintainers = [ ];
    maintainers = with lib.maintainers; [ yiyu ];
    inherit (guile.meta) platforms;
  };
})