mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 19:58:44 +08:00
31 lines
692 B
Nix
31 lines
692 B
Nix
|
{ stdenvNoCC, texlive, fetchFromGitHub }: stdenvNoCC.mkDerivation (finalAttrs: rec
|
||
|
{
|
||
|
pname = "latex-citation-style-language";
|
||
|
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
|
||
|
'';
|
||
|
})
|