mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 09:03:48 +00:00
4795e7f3a9
pandoc-citeproc is an optional dependency of apostrophe's dependency pypandoc. However apostrophe doesn't use pandoc-citeproc as a filter (anymore?), so we can safely remove this dependency which invites breakage as the package has been deprecated by upstream.
53 lines
1.5 KiB
Nix
53 lines
1.5 KiB
Nix
{ lib, stdenv, fetchFromGitLab, meson, ninja, cmake
|
|
, wrapGAppsHook, pkg-config, desktop-file-utils
|
|
, appstream-glib, pythonPackages, glib, gobject-introspection
|
|
, gtk3, webkitgtk, glib-networking, gnome3, gspell, texlive
|
|
, shared-mime-info, libhandy
|
|
}:
|
|
|
|
let
|
|
pythonEnv = pythonPackages.python.withPackages(p: with p; [
|
|
regex setuptools python-Levenshtein pyenchant
|
|
pygobject3 pycairo pypandoc chardet
|
|
]);
|
|
|
|
in stdenv.mkDerivation rec {
|
|
pname = "apostrophe";
|
|
version = "2.4";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "somas";
|
|
repo = pname;
|
|
domain = "gitlab.gnome.org";
|
|
rev = "v${version}";
|
|
sha256 = "1qzy3zhi18wf42m034s8kcmx9gl05j620x3hf6rnycq2fvy7g4gz";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja cmake pkg-config desktop-file-utils
|
|
appstream-glib wrapGAppsHook ];
|
|
|
|
buildInputs = [ glib pythonEnv gobject-introspection gtk3
|
|
gnome3.adwaita-icon-theme webkitgtk gspell texlive
|
|
glib-networking libhandy ];
|
|
|
|
postPatch = ''
|
|
patchShebangs --build build-aux/meson_post_install.py
|
|
'';
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--prefix PYTHONPATH : "$out/lib/python${pythonEnv.pythonVersion}/site-packages/"
|
|
--prefix PATH : "${texlive}/bin"
|
|
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gitlab.gnome.org/somas/apostrophe";
|
|
description = "A distraction free Markdown editor for GNU/Linux";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
};
|
|
}
|