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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.8 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, gnome, gmime3, webkitgtk, ronn
2021-08-23 08:33:10 +00:00
, libsass, notmuch, boost, wrapGAppsHook, glib-networking, protobuf
, gtkmm3, libpeas, gsettings-desktop-schemas, gobject-introspection, python3
# vim to be used, should support the GUI mode.
, vim
# additional python3 packages to be available within plugins
, extraPythonPackages ? []
}:
2016-12-31 23:14:09 +00:00
stdenv.mkDerivation rec {
2019-07-21 08:02:21 +00:00
pname = "astroid";
2021-08-20 16:17:26 +00:00
version = "0.16";
2016-12-31 23:14:09 +00:00
src = fetchFromGitHub {
owner = "astroidmail";
repo = "astroid";
rev = "v${version}";
2021-08-20 16:17:26 +00:00
sha256 = "sha256-6xQniOLNUk8tDkooDN3Tp6sb43GqoynO6+fN9yhNqZ4=";
2016-12-31 23:14:09 +00:00
};
patches = [
(fetchpatch {
name = "symbolic-icons.patch";
url =
"https://github.com/astroidmail/astroid/commit/7c2022f06a4146ad62e858bcaacdb4ee817851b9.patch";
hash = "sha256-hZHOg1wUR8Kpd6017fWzhMmG+/WQxSOCnsiyIvUcpbU=";
})
];
nativeBuildInputs = [
cmake ronn pkg-config wrapGAppsHook gobject-introspection
python3 python3.pkgs.wrapPython
];
2019-02-13 21:47:50 +00:00
buildInputs = [
gtkmm3 gmime3 webkitgtk libsass libpeas
python3
notmuch boost gsettings-desktop-schemas gnome.adwaita-icon-theme
2019-02-13 21:47:50 +00:00
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"
)
'';
2016-12-31 23:14:09 +00: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;
2016-12-31 23:14:09 +00:00
};
}