localPackages: add latex-citation-style-language

This commit is contained in:
陈浩南 2023-10-25 16:03:43 +08:00
parent e2c61c6aaa
commit 97ec3061e7
4 changed files with 40 additions and 4 deletions

View File

@ -942,11 +942,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1696511131,
"narHash": "sha256-IIhn6F8D26Kix77guTW/4KdpwBzpSHJ3mjG1C8FAwHc=",
"lastModified": 1698218924,
"narHash": "sha256-zqLXy/Ux+xOhgyOO6UELOmPF89PxJtfNdbFSxqiVXYk=",
"owner": "CHN-beta",
"repo": "nixpkgs",
"rev": "1bac8e4beb5b30458994710236b9db265829327b",
"rev": "c33a629f98f62a317ee1155fa63c3a48c30e1ce5",
"type": "github"
},
"original": {

View File

@ -38,4 +38,5 @@
yoga-support = callPackage ./yoga-support {};
tgbot-cpp = callPackage ./tgbot-cpp {};
biu = callPackage ./biu { inherit concurrencpp tgbot-cpp nameof; stdenv = gcc13Stdenv; };
latex-citation-style-language = callPackage ./latex-citation-style-language {};
}

View File

@ -0,0 +1,30 @@
{ 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
'';
})

View File

@ -501,7 +501,12 @@ inputs:
# instant messager
zoom-us signal-desktop qq nur-xddxdd.wechat-uos slack # jail
# office
libreoffice-qt texlive.combined.scheme-full texstudio poppler_utils pdftk gnuplot pdfchain
libreoffice-qt texstudio poppler_utils pdftk gnuplot pdfchain
(texlive.combine
{
inherit (texlive) scheme-full;
inherit (localPackages) latex-citation-style-language;
})
# development
jetbrains.clion android-studio dbeaver cling clang-tools_16 ccls fprettify
# media