nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 63 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 mercury, 6 pandoc, 7 ncurses, 8 gpgme, 9 coreutils, 10 file, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "notmuch-bower"; 15 version = "1.1.1"; 16 17 src = fetchFromGitHub { 18 owner = "wangp"; 19 repo = "bower"; 20 rev = version; 21 sha256 = "sha256-THIMCIk6ugPpogfQ5DTHIgFD7no5IIVYfz2mqBvKBlY="; 22 }; 23 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 ''; 32 33 buildInputs = [ 34 ncurses 35 gpgme 36 ]; 37 38 makeFlags = [ 39 "PARALLEL=-j$(NIX_BUILD_CORES)" 40 "bower" 41 "man" 42 ]; 43 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 ''; 52 53 enableParallelBuilding = true; 54 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 }; 63}