2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gawk, mercury, pandoc, ncurses, gpgme }:
|
2017-10-14 10:08:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "notmuch-bower";
|
2021-07-27 07:41:23 +01:00
|
|
|
version = "0.13";
|
2017-10-14 10:08:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wangp";
|
|
|
|
repo = "bower";
|
2018-09-29 07:29:10 +01:00
|
|
|
rev = version;
|
2021-07-27 07:41:23 +01:00
|
|
|
sha256 = "0r5s16pc3ym5nd33lv9ljv1p1gpb7yysrdni4g7w7yvjrnwk35l6";
|
2017-10-14 10:08:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gawk mercury pandoc ];
|
|
|
|
|
|
|
|
buildInputs = [ ncurses gpgme ];
|
|
|
|
|
|
|
|
makeFlags = [ "PARALLEL=-j$(NIX_BUILD_CORES)" "bower" "man" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-07-27 07:41:23 +01:00
|
|
|
runHook preInstall
|
2017-10-14 10:08:04 +01:00
|
|
|
mkdir -p $out/bin
|
|
|
|
mv bower $out/bin/
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
mv bower.1 $out/share/man/man1/
|
2021-07-27 07:41:23 +01:00
|
|
|
runHook postInstall
|
2017-10-14 10:08:04 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/wangp/bower";
|
2017-10-14 10:08:04 +01:00
|
|
|
description = "A curses terminal client for the Notmuch email system";
|
2021-07-27 11:38:59 +01:00
|
|
|
maintainers = with maintainers; [ jgart ];
|
2021-07-27 07:41:23 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2017-10-14 10:08:04 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|