nixpkgs/pkgs/applications/networking/mailreaders/astroid/default.nix

57 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gnome3, gmime3, webkitgtk, ronn
, libsass, notmuch, boost, wrapGAppsHook, glib-networking, protobuf, vim_configurable
, gtkmm3, libpeas, gsettings-desktop-schemas, gobject-introspection, python3
# vim to be used, should support the GUI mode.
, vim ? vim_configurable.override { features = "normal"; gui = "auto"; }
# additional python3 packages to be available within plugins
, extraPythonPackages ? []
}:
2017-01-01 00:14:09 +01:00
stdenv.mkDerivation rec {
2019-07-21 10:02:21 +02:00
pname = "astroid";
version = "0.15";
2017-01-01 00:14:09 +01:00
src = fetchFromGitHub {
owner = "astroidmail";
repo = "astroid";
rev = "v${version}";
2019-07-21 10:02:21 +02:00
sha256 = "11cxbva9ni98gii59xmbxh4c6idcg3mg0pgdsp1c3j0yg7ix0lj3";
2017-01-01 00:14:09 +01:00
};
nativeBuildInputs = [
cmake ronn pkg-config wrapGAppsHook gobject-introspection
python3 python3.pkgs.wrapPython
];
2019-02-13 22:47:50 +01:00
buildInputs = [
gtkmm3 gmime3 webkitgtk libsass libpeas
python3
2019-02-13 22:47:50 +01:00
notmuch boost gsettings-desktop-schemas gnome3.adwaita-icon-theme
glib-networking protobuf
vim
];
postPatch = ''
sed -i "s~gvim ~${vim}/bin/vim -g ~g" src/config.cc
sed -i "s~ -geom 10x10~~g" src/config.cc
'';
pythonPath = with python3.pkgs; requiredPythonModules [ pygobject3 ] ++ extraPythonPackages;
preFixup = ''
buildPythonPath "$out $pythonPath"
gappsWrapperArgs+=(
--prefix PYTHONPATH : "$program_PYTHONPATH"
)
'';
2017-01-01 00:14:09 +01:00
meta = with lib; {
homepage = "https://astroidmail.github.io/";
description = "GTK frontend to the notmuch mail system";
maintainers = with maintainers; [ bdimcheff SuprDewd ];
license = licenses.gpl3Plus;
platforms = platforms.linux;
2017-01-01 00:14:09 +01:00
};
}