Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
docbook_xsl,
docbook_xml_dtd_45,
python3,
libxslt,
}:
stdenv.mkDerivation rec {
pname = "csound-manual";
version = "6.18.0";
src = fetchFromGitHub {
owner = "csound";
repo = "manual";
rev = version;
sha256 = "sha256-W8MghqUBr3V7LPgNwU6Ugw16wdK3G37zAPuasMlZ2+I=";
};
prePatch = ''
substituteInPlace manual.xml \
--replace "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
"${docbook_xml_dtd_45}/xml/dtd/docbook/docbookx.dtd"
'';
nativeBuildInputs = [
libxslt.bin
docbook_xsl
python3
python3.pkgs.pygments
];
buildPhase = ''
make XSL_BASE_PATH=${docbook_xsl}/share/xml/docbook-xsl html-dist
'';
installPhase = ''
mkdir -p $out/share/doc/csound
cp -r ./html $out/share/doc/csound
'';
meta = with lib; {
description = "Csound Canonical Reference Manual";
homepage = "https://github.com/csound/manual";
license = licenses.fdl12Plus;
maintainers = with maintainers; [ hlolli ];
platforms = lib.platforms.all;
};
}