2018-11-30 14:29:34 -08:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, gnome3, gmime3, webkitgtk
|
2018-08-08 00:04:35 -07:00
|
|
|
, libsass, notmuch, boost, wrapGAppsHook, glib-networking, protobuf, vim_configurable
|
2019-02-13 13:47:50 -08:00
|
|
|
, gtkmm3, libpeas, gsettings-desktop-schemas
|
2019-06-16 12:59:06 -07:00
|
|
|
, python3, python3Packages
|
2018-08-08 00:04:35 -07:00
|
|
|
, vim ? vim_configurable.override {
|
|
|
|
features = "normal";
|
|
|
|
gui = "auto";
|
|
|
|
}
|
2018-10-05 17:52:24 -07:00
|
|
|
, ronn
|
2018-08-08 00:04:35 -07:00
|
|
|
}:
|
2016-12-31 15:14:09 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-07-21 01:02:21 -07:00
|
|
|
pname = "astroid";
|
|
|
|
version = "0.15";
|
2016-12-31 15:14:09 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "astroidmail";
|
|
|
|
repo = "astroid";
|
|
|
|
rev = "v${version}";
|
2019-07-21 01:02:21 -07:00
|
|
|
sha256 = "11cxbva9ni98gii59xmbxh4c6idcg3mg0pgdsp1c3j0yg7ix0lj3";
|
2016-12-31 15:14:09 -08:00
|
|
|
};
|
|
|
|
|
2018-10-05 17:52:24 -07:00
|
|
|
nativeBuildInputs = [ cmake ronn pkgconfig wrapGAppsHook ];
|
2017-02-09 05:44:04 -08:00
|
|
|
|
2019-02-13 13:47:50 -08:00
|
|
|
buildInputs = [
|
|
|
|
gtkmm3 gmime3 webkitgtk libsass libpeas
|
|
|
|
python3 python3Packages.pygobject3
|
|
|
|
notmuch boost gsettings-desktop-schemas gnome3.adwaita-icon-theme
|
|
|
|
glib-networking protobuf
|
|
|
|
] ++ (if vim == null then [] else [ vim ]);
|
2018-08-08 00:04:35 -07:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
2016-12-31 15:14:09 -08:00
|
|
|
|
2017-10-14 09:46:58 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://astroidmail.github.io/";
|
2019-09-03 15:49:40 -07:00
|
|
|
description = "GTK frontend to the notmuch mail system";
|
2017-10-14 09:46:58 -07:00
|
|
|
maintainers = with maintainers; [ bdimcheff SuprDewd ];
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2016-12-31 15:14:09 -08:00
|
|
|
};
|
|
|
|
}
|