cppreference-doc: init at 2022.07.30
This commit is contained in:
parent
da1b01a144
commit
db48e5175f
31
pkgs/development/misc/cppreference-doc/default.nix
Normal file
31
pkgs/development/misc/cppreference-doc/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib, fetchzip }:
|
||||||
|
|
||||||
|
let
|
||||||
|
pname = "cppreference-doc";
|
||||||
|
version = "2022.07.30";
|
||||||
|
ver = builtins.replaceStrings ["."] [""] version;
|
||||||
|
|
||||||
|
in fetchzip {
|
||||||
|
name = pname + "-" + version;
|
||||||
|
|
||||||
|
url = "https://github.com/PeterFeicht/${pname}/releases/download/v${ver}/html-book-${ver}.tar.xz";
|
||||||
|
sha256 = "sha256-gsYNpdxbWnmwcC9IJV1g+e0/s4Hoo5ig1MGoYPIHspw=";
|
||||||
|
|
||||||
|
stripRoot = false;
|
||||||
|
|
||||||
|
postFetch = ''
|
||||||
|
rm $out/cppreference-doxygen-local.tag.xml $out/cppreference-doxygen-web.tag.xml
|
||||||
|
mkdir -p $out/share/cppreference/doc
|
||||||
|
mv $out/reference $out/share/cppreference/doc/html
|
||||||
|
'';
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -15360,6 +15360,8 @@ with pkgs;
|
||||||
|
|
||||||
avr8burnomat = callPackage ../development/misc/avr8-burn-omat { };
|
avr8burnomat = callPackage ../development/misc/avr8-burn-omat { };
|
||||||
|
|
||||||
|
cppreference-doc = callPackage ../development/misc/cppreference-doc { };
|
||||||
|
|
||||||
sourceFromHead = callPackage ../build-support/source-from-head-fun.nix {};
|
sourceFromHead = callPackage ../build-support/source-from-head-fun.nix {};
|
||||||
|
|
||||||
jruby = callPackage ../development/interpreters/jruby { };
|
jruby = callPackage ../development/interpreters/jruby { };
|
||||||
|
|
Loading…
Reference in a new issue