Files
nixpkgs/pkgs/by-name/cp/cppreference-doc/package.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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;
};
}