Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 791 B view raw
1{ lib, stdenvNoCC, fetchurl }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "cppreference-doc"; 5 version = "20220730"; 6 7 src = fetchurl { 8 url = "https://github.com/PeterFeicht/${pname}/releases/download/v${version}/html-book-${version}.tar.xz"; 9 hash = "sha256-cfFQA8FouNxaAMuvGbZICps+h6t+Riqjnttj11EcAos="; 10 }; 11 12 sourceRoot = "."; 13 14 installPhase = '' 15 runHook preInstall 16 17 mkdir -p $out/share/cppreference/doc 18 mv reference $out/share/cppreference/doc/html 19 20 runHook postInstall 21 ''; 22 23 passthru = { inherit pname version; }; 24 25 meta = with lib; { 26 description = "C++ standard library reference"; 27 homepage = "https://en.cppreference.com"; 28 license = licenses.cc-by-sa-30; 29 maintainers = with maintainers; [ panicgh ]; 30 platforms = platforms.all; 31 }; 32}