2018-11-30 23:29:34 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, gnome3, gmime3, webkitgtk
|
2018-08-08 09:04:35 +02:00
|
|
|
, libsass, notmuch, boost, wrapGAppsHook, glib-networking, protobuf, vim_configurable
|
|
|
|
, makeWrapper, python3, python3Packages
|
|
|
|
, vim ? vim_configurable.override {
|
|
|
|
features = "normal";
|
|
|
|
gui = "auto";
|
|
|
|
}
|
2018-10-06 02:52:24 +02:00
|
|
|
, ronn
|
2018-08-08 09:04:35 +02:00
|
|
|
}:
|
2017-01-01 00:14:09 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "astroid-${version}";
|
2018-10-06 02:52:24 +02:00
|
|
|
version = "0.14";
|
2017-01-01 00:14:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astroidmail";
|
|
|
|
repo = "astroid";
|
|
|
|
rev = "v${version}";
|
2018-10-06 02:52:24 +02:00
|
|
|
sha256 = "1wkv1icsx3g3gq485dnvcdhr9srrjgz4ws1i1krcw9n61bj7gxh8";
|
2017-01-01 00:14:09 +01:00
|
|
|
};
|
|
|
|
|
2018-10-06 02:52:24 +02:00
|
|
|
nativeBuildInputs = [ cmake ronn pkgconfig wrapGAppsHook ];
|
2017-02-09 14:44:04 +01:00
|
|
|
|
2018-11-30 23:29:34 +01:00
|
|
|
buildInputs = [ gnome3.gtkmm gmime3 webkitgtk libsass gnome3.libpeas
|
2018-08-08 09:04:35 +02:00
|
|
|
python3 python3Packages.pygobject3
|
|
|
|
notmuch boost gnome3.gsettings-desktop-schemas gnome3.defaultIconTheme
|
|
|
|
glib-networking protobuf ] ++ (if vim == null then [] else [ vim ]);
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "s~gvim ~${vim}/bin/vim -g ~g" src/config.cc
|
|
|
|
sed -i "s~ -geom 10x10~~g" src/config.cc
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/astroid" --set CHARSET=en_us.UTF-8
|
|
|
|
'';
|
2017-01-01 00:14:09 +01:00
|
|
|
|
2017-10-14 18:46:58 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://astroidmail.github.io/;
|
2017-01-01 00:14:09 +01:00
|
|
|
description = "GTK+ frontend to the notmuch mail system";
|
2017-10-14 18:46:58 +02:00
|
|
|
maintainers = with maintainers; [ bdimcheff SuprDewd ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2017-01-01 00:14:09 +01:00
|
|
|
};
|
|
|
|
}
|