mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
33 lines
791 B
Nix
33 lines
791 B
Nix
{ lib, stdenvNoCC, fetchurl }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "cppreference-doc";
|
|
version = "20230810";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/PeterFeicht/${pname}/releases/download/v${version}/html-book-${version}.tar.xz";
|
|
hash = "sha256-McCOTZnobH9j8yTT/1ME7/IDATHEoKwNHjwZxiyO1oQ=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|