aa122cbae7
This CL can be used to compare the style of nixpkgs-fmt against other formatters (nixpkgs, alejandra). Change-Id: I87c6abff6bcb546b02ead15ad0405f81e01b6d9e Reviewed-on: https://cl.tvl.fyi/c/depot/+/4397 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: wpcarro <wpcarro@gmail.com> Reviewed-by: Profpatsch <mail@profpatsch.de> Reviewed-by: kanepyork <rikingcoding@gmail.com> Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: cynthia <cynthia@tvl.fyi> Reviewed-by: edef <edef@edef.eu> Reviewed-by: eta <tvl@eta.st> Reviewed-by: grfn <grfn@gws.fyi>
47 lines
932 B
Nix
47 lines
932 B
Nix
{ pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
tl = pkgs.texlive.combine {
|
|
inherit (pkgs.texlive) scheme-medium wrapfig ulem capt-of
|
|
titlesec preprint enumitem paralist ctex environ svg
|
|
beamer trimspaces zhnumber changepage framed pdfpages
|
|
fvextra minted upquote ifplatform xstring;
|
|
};
|
|
|
|
csl = pkgs.fetchurl {
|
|
name = "numeric.csl";
|
|
url = "https://gist.githubusercontent.com/bwiernik/8c6f39cf51ceb3a03107/raw/1d75c2d62113ffbba6ed03a47ad99bde86934f2b/APA%2520Numeric";
|
|
sha256 = "1yfhhnhbzvhrv93baz98frmgsx5y442nzhb0l956l4j35fb0cc3h";
|
|
};
|
|
|
|
in
|
|
pkgs.stdenv.mkDerivation {
|
|
pname = "tvix-doc";
|
|
version = "0.1";
|
|
|
|
outputs = [ "out" "svg" ];
|
|
|
|
src = lib.cleanSource ./.;
|
|
|
|
CSL = csl;
|
|
|
|
nativeBuildInputs = [
|
|
pkgs.pandoc
|
|
pkgs.plantuml
|
|
tl
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out
|
|
cp -v *.html $out/
|
|
|
|
mkdir -p $svg
|
|
cp -v *.svg $svg/
|
|
|
|
runHook postSubmit
|
|
'';
|
|
|
|
}
|