2023-03-30 22:05:00 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl }:
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-09-09 14:08:57 +00:00
|
|
|
pname = "cppreference-doc";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "20220730";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/PeterFeicht/${pname}/releases/download/v${version}/html-book-${version}.tar.xz";
|
|
|
|
hash = "sha256-cfFQA8FouNxaAMuvGbZICps+h6t+Riqjnttj11EcAos=";
|
|
|
|
};
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
sourceRoot = ".";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/cppreference/doc
|
2023-03-30 22:05:00 +00:00
|
|
|
mv reference $out/share/cppreference/doc/html
|
|
|
|
|
|
|
|
runHook postInstall
|
2022-09-09 14:08:57 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|