567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
37 lines
800 B
Nix
37 lines
800 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 = {
|
|
description = "C++ standard library reference";
|
|
homepage = "https://en.cppreference.com";
|
|
license = lib.licenses.cc-by-sa-30;
|
|
maintainers = with lib.maintainers; [ panicgh ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|