fortune: 3.24.0 -> 3.26.0

This commit is contained in:
Vonfry
2026-01-20 21:10:19 +08:00
parent a95e89d83f
commit 43c2e0b96c
+10 -3
View File
@@ -7,24 +7,31 @@
perl,
rinutils,
fortune,
libxslt,
docbook-xsl-nons,
withOffensive ? false,
}:
stdenv.mkDerivation rec {
pname = "fortune-mod";
version = "3.24.0";
version = "3.26.0";
# We use fetchurl instead of fetchFromGitHub because the release pack has some
# special files.
src = fetchurl {
url = "https://github.com/shlomif/fortune-mod/releases/download/fortune-mod-${version}/fortune-mod-${version}.tar.xz";
sha256 = "sha256-Hzh4dyVOleq2H5NyV7QmCfKbmU7wVxUxZVu/w6KsdKw=";
sha256 = "sha256-rE0UhsrJuZkEkQcTa5QQb+mKSurADsY1sUTEN2S//kw=";
};
nativeBuildInputs = [
cmake
perl
(perl.withPackages (p: [
p.PathTiny
p.AppXMLDocBookBuilder
]))
rinutils
libxslt
docbook-xsl-nons
]
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
# "strfile" must be in PATH for cross-compiling builds.