1{ lib, stdenv, curl, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "stdman";
5 version = "2022.07.30";
6
7 src = fetchFromGitHub {
8 owner = "jeaye";
9 repo = "stdman";
10 rev = version;
11 sha256 = "sha256-ABogxVQS6p3wUV8GuB2tp7vMxe63t51dNoclEnYpa/0=";
12 };
13
14 outputDevdoc = "out";
15
16 preConfigure = "
17 patchShebangs ./configure
18 patchShebangs ./do_install
19 ";
20
21 buildInputs = [ curl ];
22
23 meta = with lib; {
24 description = "Formatted C++17 stdlib man pages (cppreference)";
25 longDescription = "stdman is a tool that parses archived HTML
26 files from cppreference and generates groff-formatted manual
27 pages for Unix-based systems. The goal is to provide excellent
28 formatting for easy readability.";
29 homepage = "https://github.com/jeaye/stdman";
30 license = licenses.mit;
31 platforms = platforms.unix;
32 maintainers = [ maintainers.twey ];
33 };
34}