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

49 lines
1.4 KiB
Nix
Raw Normal View History

2018-11-30 22:29:34 +00:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig, gnome3, gmime3, webkitgtk
, libsass, notmuch, boost, wrapGAppsHook, glib-networking, protobuf, vim_configurable
2019-02-13 21:47:50 +00:00
, gtkmm3, libpeas, gsettings-desktop-schemas
, python3, python3Packages
, vim ? vim_configurable.override {
features = "normal";
gui = "auto";
}
2018-10-06 01:52:24 +01:00
, ronn
}:
2016-12-31 23:14:09 +00:00
stdenv.mkDerivation rec {
2019-07-21 09:02:21 +01: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 09:02:21 +01:00
sha256 = "11cxbva9ni98gii59xmbxh4c6idcg3mg0pgdsp1c3j0yg7ix0lj3";
2016-12-31 23:14:09 +00:00
};
2018-10-06 01:52:24 +01:00
nativeBuildInputs = [ cmake ronn pkgconfig wrapGAppsHook ];
2019-02-13 21:47:50 +00: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 ]);
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 23:14:09 +00:00
meta = with stdenv.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;
2016-12-31 23:14:09 +00:00
};
}