nixpkgs/pkgs/development/misc/cppreference-doc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
791 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchurl }:
2022-08-28 00:04:25 +00:00
stdenvNoCC.mkDerivation rec {
2022-08-28 00:04:25 +00:00
pname = "cppreference-doc";
version = "20220730";
2022-08-28 00:04:25 +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-08-28 00:04:25 +00:00
sourceRoot = ".";
2022-08-28 00:04:25 +00:00
installPhase = ''
runHook preInstall
2022-08-28 00:04:25 +00:00
mkdir -p $out/share/cppreference/doc
mv reference $out/share/cppreference/doc/html
runHook postInstall
2022-08-28 00:04:25 +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;
};
}