.github/labeler-no-sync: fix backport labelling (#378567)
[NixPkgs.git] / pkgs / by-name / no / notmuch-bower / package.nix
blob1bb1c050171d28220daac0e14cd4dbfa46d4dfda
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   mercury,
6   pandoc,
7   ncurses,
8   gpgme,
9   coreutils,
10   file,
13 stdenv.mkDerivation rec {
14   pname = "notmuch-bower";
15   version = "1.1";
17   src = fetchFromGitHub {
18     owner = "wangp";
19     repo = "bower";
20     rev = version;
21     sha256 = "sha256-CqA9JU/ujqIn/NvtbPtSWxKDYCv4oDdLCgbf2jj9Av4=";
22   };
24   nativeBuildInputs = [
25     mercury
26     pandoc
27   ];
28   postPatch = ''
29     substituteInPlace src/compose.m --replace 'shell_quoted("base64' 'shell_quoted("${coreutils}/bin/base64'
30     substituteInPlace src/detect_mime_type.m --replace 'shell_quoted("file' 'shell_quoted("${file}/bin/file'
31   '';
33   buildInputs = [
34     ncurses
35     gpgme
36   ];
38   makeFlags = [
39     "PARALLEL=-j$(NIX_BUILD_CORES)"
40     "bower"
41     "man"
42   ];
44   installPhase = ''
45     runHook preInstall
46     mkdir -p $out/bin
47     mv bower $out/bin/
48     mkdir -p $out/share/man/man1
49     mv bower.1 $out/share/man/man1/
50     runHook postInstall
51   '';
53   enableParallelBuilding = true;
55   meta = with lib; {
56     homepage = "https://github.com/wangp/bower";
57     description = "Curses terminal client for the Notmuch email system";
58     mainProgram = "bower";
59     maintainers = with maintainers; [ jgart ];
60     license = licenses.gpl3Plus;
61     platforms = platforms.linux;
62   };