diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2019-06-16 13:34:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-16 13:34:55 +0200 |
commit | 3c32910b9be14cd886068d0a00c68bc1ad3a5a8a (patch) | |
tree | b83839ecc1ae7d0ff26fb348bab3cf80ce03c416 | |
parent | 636f1f08b0a1d26b6530a45a0b33ed1c3a081c02 (diff) | |
parent | dc1228d1b124488fd557ba20834486a1aaac5d47 (diff) |
Merge pull request #63194 from flokli/afew-2.0.0
afew: 1.3.0 -> 2.0.0
-rw-r--r-- | pkgs/applications/networking/mailreaders/afew/default.nix | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/pkgs/applications/networking/mailreaders/afew/default.nix b/pkgs/applications/networking/mailreaders/afew/default.nix index bdf39de0651c..29f44e53333a 100644 --- a/pkgs/applications/networking/mailreaders/afew/default.nix +++ b/pkgs/applications/networking/mailreaders/afew/default.nix @@ -2,11 +2,11 @@ pythonPackages.buildPythonApplication rec { pname = "afew"; - version = "1.3.0"; + version = "2.0.0"; src = pythonPackages.fetchPypi { inherit pname version; - sha256 = "0105glmlkpkjqbz350dxxasvlfx9dk0him9vwbl86andzi106ygz"; + sha256 = "0j60501nm242idf2ig0h7p6wrg58n5v2p6zfym56v9pbvnbmns0s"; }; nativeBuildInputs = with pythonPackages; [ sphinx setuptools_scm ]; @@ -15,19 +15,22 @@ pythonPackages.buildPythonApplication rec { pythonPackages.notmuch chardet dkimpy ] ++ stdenv.lib.optional (!pythonPackages.isPy3k) subprocess32; + makeWrapperArgs = [ + ''--prefix PATH ':' "${notmuch}/bin"'' + ]; + + outputs = [ "out" "doc" ]; + postBuild = '' - make -C docs man + python setup.py build_sphinx -b html,man ''; postInstall = '' - mandir="$out/share/man/man1" - mkdir -p "$mandir" - cp docs/build/man/* "$mandir" + install -D -v -t $out/share/man/man1 build/sphinx/man/* + mkdir -p $out/share/doc/afew + cp -R build/sphinx/html/* $out/share/doc/afew ''; - makeWrapperArgs = [ - ''--prefix PATH ':' "${notmuch}/bin"'' - ]; meta = with stdenv.lib; { homepage = https://github.com/afewmail/afew; |