Skip to content

Commit

Permalink
po4a: format
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Nov 23, 2024
1 parent 4ed371b commit 3d2d9c3
Showing 1 changed file with 39 additions and 37 deletions.
76 changes: 39 additions & 37 deletions pkgs/development/perl-modules/Po4a/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{ stdenv
, lib
, fetchurl
, docbook_xsl
, docbook_xsl_ns
, gettext
, libxslt
, glibcLocales
, docbook_xml_dtd_45
, docbook_sgml_dtd_41
, opensp
, bash
, fetchpatch
, perl
, buildPerlPackage
, ModuleBuild
, TextWrapI18N
, LocaleGettext
, SGMLSpm
, UnicodeLineBreak
, PodParser
, YAMLTiny
, SyntaxKeywordTry
, writeShellScriptBin
{
stdenv,
lib,
fetchurl,
docbook_xsl,
docbook_xsl_ns,
gettext,
libxslt,
glibcLocales,
docbook_xml_dtd_45,
docbook_sgml_dtd_41,
opensp,
bash,
fetchpatch,
perl,
buildPerlPackage,
ModuleBuild,
TextWrapI18N,
LocaleGettext,
SGMLSpm,
UnicodeLineBreak,
PodParser,
YAMLTiny,
SyntaxKeywordTry,
writeShellScriptBin,
}:

buildPerlPackage rec {
Expand All @@ -41,8 +42,7 @@ buildPerlPackage rec {
# shellscript that suffices for the tests in t/fmt/tex/, i.e. it looks up
# article.cls to an existing file, but doesn't find article-wrong.cls.
let
kpsewhich-stub = writeShellScriptBin "kpsewhich"
''[[ $1 = "article.cls" ]] && echo /dev/null'';
kpsewhich-stub = writeShellScriptBin "kpsewhich" ''[[ $1 = "article.cls" ]] && echo /dev/null'';
in
[
gettext
Expand All @@ -62,19 +62,21 @@ buildPerlPackage rec {
url = "https://github.com/mquinson/po4a/commit/28fe52651eb8096d97d6bd3a97b3168522ba5306.patch";
hash = "sha256-QUXxkSzcnwRvU+2y2KoBXmtfE8qTZ2BV0StkJHqZehQ=";
})
];
];

# TODO: TermReadKey was temporarily removed from propagatedBuildInputs to unfreeze the build
propagatedBuildInputs = lib.optionals (!stdenv.hostPlatform.isMusl) [
TextWrapI18N
] ++ [
LocaleGettext
SGMLSpm
UnicodeLineBreak
PodParser
YAMLTiny
SyntaxKeywordTry
];
propagatedBuildInputs =
lib.optionals (!stdenv.hostPlatform.isMusl) [
TextWrapI18N
]
++ [
LocaleGettext
SGMLSpm
UnicodeLineBreak
PodParser
YAMLTiny
SyntaxKeywordTry
];

buildInputs = [ bash ];

Expand Down

0 comments on commit 3d2d9c3

Please sign in to comment.