nixpkgs/pkgs/tools/misc/pandoc-lua-filters/default.nix
2020-12-09 05:26:55 +01:00

34 lines
689 B
Nix

{ 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 stdenv.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;
};
}