2023-10-25 16:03:43 +08:00
|
|
|
{ stdenvNoCC, texlive, fetchFromGitHub }: stdenvNoCC.mkDerivation (finalAttrs: rec
|
|
|
|
{
|
2023-12-05 10:35:39 +08:00
|
|
|
pname = "citation-style-language";
|
2023-10-25 16:03:43 +08:00
|
|
|
version = "0.4.5";
|
|
|
|
passthru = {
|
|
|
|
pkgs = [ finalAttrs.finalPackage ];
|
|
|
|
tlDeps = with texlive; [ latex ];
|
|
|
|
tlType = "run";
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchFromGitHub
|
|
|
|
{
|
|
|
|
owner = "zepinglee";
|
|
|
|
repo = "citeproc-lua";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "XH+GH+t/10hr4bfaod8F9JPxmBnAQlDmpSvQNDQsslM=";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ texlive.combined.scheme-full ];
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
runHook preInstall
|
|
|
|
export TEXMFHOME=$out
|
|
|
|
l3build install
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
})
|