btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / st / stdman / package.nix
blobe934271b1671aeb53c0bcdfdf9486fceb9539171
1 { lib, stdenv, curl, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "stdman";
5   version = "2024.07.05";
7   src = fetchFromGitHub {
8     owner = "jeaye";
9     repo = "stdman";
10     rev = version;
11     sha256 = "sha256-/yJqKwJHonnBkP6/yQQJT3yPyYO6/nFAf4XFrgl3L0A=";
12   };
14   outputDevdoc = "out";
16   preConfigure = "
17     patchShebangs ./do_install
18   ";
20   buildInputs = [ curl ];
22   meta = with lib; {
23     description = "Formatted C++17 stdlib man pages (cppreference)";
24     longDescription = "stdman is a tool that parses archived HTML
25       files from cppreference and generates groff-formatted manual
26       pages for Unix-based systems. The goal is to provide excellent
27       formatting for easy readability.";
28     homepage = "https://github.com/jeaye/stdman";
29     license = licenses.mit;
30     platforms = platforms.unix;
31     maintainers = [ maintainers.twey ];
32   };