2020-10-15 20:58:31 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gnome3, gmime3, webkitgtk, ronn
|
2018-08-08 07:04:35 +00:00
|
|
|
, libsass, notmuch, boost, wrapGAppsHook, glib-networking, protobuf, vim_configurable
|
2020-10-15 20:58:31 +00:00
|
|
|
, 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 ? []
|
2018-08-08 07:04:35 +00:00
|
|
|
}:
|
2016-12-31 23:14:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-21 08:02:21 +00:00
|
|
|
pname = "astroid";
|
|
|
|
version = "0.15";
|
2016-12-31 23:14:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astroidmail";
|
|
|
|
repo = "astroid";
|
|
|
|
rev = "v${version}";
|
2019-07-21 08:02:21 +00:00
|
|
|
sha256 = "11cxbva9ni98gii59xmbxh4c6idcg3mg0pgdsp1c3j0yg7ix0lj3";
|
2016-12-31 23:14:09 +00:00
|
|
|
};
|
|
|
|
|
2020-10-15 20:58:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake ronn pkg-config wrapGAppsHook gobject-introspection
|
|
|
|
python3 python3.pkgs.wrapPython
|
|
|
|
];
|
2017-02-09 13:44:04 +00:00
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtkmm3 gmime3 webkitgtk libsass libpeas
|
2020-10-15 20:58:31 +00:00
|
|
|
python3
|
2019-02-13 21:47:50 +00:00
|
|
|
notmuch boost gsettings-desktop-schemas gnome3.adwaita-icon-theme
|
|
|
|
glib-networking protobuf
|
2020-10-15 20:58:31 +00:00
|
|
|
vim
|
|
|
|
];
|
2018-08-08 07:04:35 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "s~gvim ~${vim}/bin/vim -g ~g" src/config.cc
|
|
|
|
sed -i "s~ -geom 10x10~~g" src/config.cc
|
|
|
|
'';
|
|
|
|
|
2020-10-15 20:58:31 +00:00
|
|
|
pythonPath = with python3.pkgs; requiredPythonModules [ pygobject3 ] ++ extraPythonPackages;
|
|
|
|
preFixup = ''
|
|
|
|
buildPythonPath "$out $pythonPath"
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix PYTHONPATH : "$program_PYTHONPATH"
|
|
|
|
)
|
2018-08-08 07:04:35 +00:00
|
|
|
'';
|
2016-12-31 23:14:09 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://astroidmail.github.io/";
|
2019-09-03 22:49:40 +00:00
|
|
|
description = "GTK frontend to the notmuch mail system";
|
2017-10-14 16:46:58 +00:00
|
|
|
maintainers = with maintainers; [ bdimcheff SuprDewd ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2016-12-31 23:14:09 +00:00
|
|
|
};
|
|
|
|
}
|