1 { lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, gettext, pkg-config, wxGTK32,
2 boost, icu, lucenepp, asciidoc, libxslt, xmlto, gtk3, gtkspell3, pugixml,
3 nlohmann_json, hicolor-icon-theme, wrapGAppsHook3 }:
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
12 rev = "v${version}-oss";
13 hash = "sha256-SZjsJQYJCXQendzQ2Tobg+IgkWL6lFX5YnMfruPt7UA=";
16 nativeBuildInputs = [ autoconf automake asciidoc wrapGAppsHook3
17 libxslt xmlto boost libtool pkg-config ];
19 buildInputs = [ lucenepp nlohmann_json wxGTK32 icu pugixml gtk3 gtkspell3 hicolor-icon-theme ];
21 propagatedBuildInputs = [ gettext ];
24 patchShebangs bootstrap
31 "--with-boost-libdir=${boost.out}/lib"
32 "CPPFLAGS=-I${nlohmann_json}/include/nlohmann/"
37 gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ gettext ]}")
40 enableParallelBuilding = true;
43 description = "Cross-platform gettext catalogs (.po files) editor";
44 mainProgram = "poedit";
45 homepage = "https://www.poedit.net/";
46 license = licenses.mit;
47 platforms = platforms.unix;
48 maintainers = with maintainers; [ dasj19 ];
49 # configure: error: GTK+ build of wxWidgets is required
50 broken = stdenv.hostPlatform.isDarwin;