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
37 lines
798 B
Nix
37 lines
798 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "cppreference-doc";
|
|
version = "20250209";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/PeterFeicht/${pname}/releases/download/v${version}/html-book-${version}.tar.xz";
|
|
hash = "sha256-rFBnGh9S1/CrCRHRRFDrNejC+BLt0OQmss0ePZ25HW8=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/cppreference/doc
|
|
mv reference $out/share/cppreference/doc/html
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = { inherit pname version; };
|
|
|
|
meta = with lib; {
|
|
description = "C++ standard library reference";
|
|
homepage = "https://en.cppreference.com";
|
|
license = licenses.cc-by-sa-30;
|
|
maintainers = with maintainers; [ panicgh ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|