afew: add manpage

Generate the manpage which was previously missing.
This commit is contained in:
Uli Baum 2018-09-14 18:51:37 +02:00 committed by Rok Garbas
parent 3c57887f64
commit 541b2413b4

View File

@ -9,12 +9,22 @@ pythonPackages.buildPythonApplication rec {
sha256 = "0105glmlkpkjqbz350dxxasvlfx9dk0him9vwbl86andzi106ygz";
};
buildInputs = with pythonPackages; [ setuptools_scm ];
nativeBuildInputs = with pythonPackages; [ sphinx setuptools_scm ];
propagatedBuildInputs = with pythonPackages; [
pythonPackages.notmuch chardet dkimpy
] ++ stdenv.lib.optional (!pythonPackages.isPy3k) subprocess32;
postBuild = ''
make -C docs man
'';
postInstall = ''
mandir="$out/share/man/man1"
mkdir -p "$mandir"
cp docs/build/man/* "$mandir"
'';
makeWrapperArgs = [
''--prefix PATH ':' "${notmuch}/bin"''
];