Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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, wrapGAppsHook }: 4 5stdenv.mkDerivation rec { 6 pname = "poedit"; 7 version = "3.3.1"; 8 9 src = fetchFromGitHub { 10 owner = "vslavik"; 11 repo = "poedit"; 12 rev = "v${version}-oss"; 13 hash = "sha256-xQDmBVALhtjc75JsjgqM5kyPR6UB05FbXnFPKWUY3ug="; 14 }; 15 16 nativeBuildInputs = [ autoconf automake asciidoc wrapGAppsHook 17 libxslt xmlto boost libtool pkg-config ]; 18 19 buildInputs = [ lucenepp nlohmann_json wxGTK32 icu pugixml gtk3 gtkspell3 hicolor-icon-theme ]; 20 21 propagatedBuildInputs = [ gettext ]; 22 23 preConfigure = " 24 patchShebangs bootstrap 25 ./bootstrap 26 "; 27 28 configureFlags = [ 29 "--without-cld2" 30 "--without-cpprest" 31 "--with-boost-libdir=${boost.out}/lib" 32 "CPPFLAGS=-I${nlohmann_json}/include/nlohmann/" 33 "LDFLAGS=-llucene++" 34 ]; 35 36 preFixup = '' 37 gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ gettext ]}") 38 ''; 39 40 enableParallelBuilding = true; 41 42 meta = with lib; { 43 description = "Cross-platform gettext catalogs (.po files) editor"; 44 homepage = "https://www.poedit.net/"; 45 license = licenses.mit; 46 platforms = platforms.unix; 47 maintainers = with maintainers; [ dasj19 ]; 48 # configure: error: GTK+ build of wxWidgets is required 49 broken = stdenv.isDarwin; 50 }; 51}