about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/pandoc-lua-filters/default.nix
blob: 6eb3359b3b5ec98a8ecadbe20bd559f3ab16494d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, stdenv
, fetchFromGitHub
}:

stdenv.mkDerivation rec {
  pname = "pandoc-lua-filters";
  version = "2020-11-30";

  src = fetchFromGitHub {
    owner = "pandoc";
    repo = "lua-filters";
    rev = "v${version}";
    sha256 = "HWBlmlIuJOSgRVrUmXOAI4XTxs1PbZhcwZgZFX0x2wM=";
  };

  dontBuild = true;

  installPhase = ''
    runHook preInstall

    install -Dt $out/share/pandoc/filters **/*.lua

    runHook postInstall
  '';

  meta = with lib; {
    description = "A collection of lua filters for pandoc";
    homepage = "https://github.com/pandoc/lua-filters";
    license = licenses.mit;
    maintainers = with maintainers; [ jtojnar ];
    platforms = platforms.all;
  };
}