Merge pull request #31613 from flokli/neomutt-wrap-aux

neomutt: wrapProgram to add lib/neomutt to PATH
This commit is contained in:
Jörg Thalheim 2017-11-13 17:24:12 +00:00 committed by GitHub
commit 876a5b63b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
{ stdenv, fetchFromGitHub, which, autoreconfHook, writeScript, ncurses, perl
, cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl, lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42 }:
{ stdenv, fetchFromGitHub, which, autoreconfHook, makeWrapper, writeScript,
ncurses, perl , cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl,
lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42 }:
let
muttWrapper = writeScript "mutt" ''
@ -26,7 +27,7 @@ in stdenv.mkDerivation rec {
buildInputs = [
cyrus_sasl gss gpgme kerberos libidn ncurses
notmuch openssl perl lmdb
notmuch openssl perl lmdb makeWrapper
];
nativeBuildInputs = [ autoreconfHook docbook_xsl docbook_xml_dtd_42 libxslt.bin which ];
@ -65,6 +66,7 @@ in stdenv.mkDerivation rec {
postInstall = ''
cp ${muttWrapper} $out/bin/mutt
wrapProgram "$out/bin/neomutt" --prefix PATH : "$out/lib/neomutt"
'';
meta = with stdenv.lib; {