liberasurecode: generate man pages
This commit is contained in:
parent
93761fdcc9
commit
09031c22ca
|
@ -1,10 +1,17 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, zlib }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, autoreconfHook
|
||||||
|
, doxygen
|
||||||
|
, installShellFiles
|
||||||
|
, zlib
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "liberasurecode";
|
pname = "liberasurecode";
|
||||||
version = "1.6.2";
|
version = "1.6.2";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" "doc" ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "openstack";
|
owner = "openstack";
|
||||||
|
@ -13,10 +20,27 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-qV7DL/7zrwrYOaPj6iHnChGA6KHFwYKjeaMnrGrTPrQ=";
|
sha256 = "sha256-qV7DL/7zrwrYOaPj6iHnChGA6KHFwYKjeaMnrGrTPrQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
postPatch = ''
|
||||||
|
substituteInPlace doc/doxygen.cfg.in \
|
||||||
|
--replace "GENERATE_MAN = NO" "GENERATE_MAN = YES"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook doxygen installShellFiles ];
|
||||||
|
|
||||||
buildInputs = [ zlib ];
|
buildInputs = [ zlib ];
|
||||||
|
|
||||||
|
configureFlags = [ "--enable-doxygen" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# remove useless man pages about directories
|
||||||
|
rm doc/man/man*/_*
|
||||||
|
installManPage doc/man/man*/*
|
||||||
|
|
||||||
|
moveToOutput share/liberasurecode/ $doc
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkTarget = "test";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Erasure Code API library written in C with pluggable Erasure Code backends";
|
description = "Erasure Code API library written in C with pluggable Erasure Code backends";
|
||||||
homepage = "https://github.com/openstack/liberasurecode";
|
homepage = "https://github.com/openstack/liberasurecode";
|
||||||
|
|
Loading…
Reference in a new issue