Files
nixpkgs/pkgs/by-name/po/poedit/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

91 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoconf,
automake,
libtool,
gettext,
pkg-config,
wxGTK32,
boost,
icu,
lucenepp,
asciidoc,
libxslt,
xmlto,
gtk3,
gtkspell3,
pugixml,
nlohmann_json,
hicolor-icon-theme,
wrapGAppsHook3,
}:
stdenv.mkDerivation rec {
pname = "poedit";
version = "3.6.2";
src = fetchFromGitHub {
owner = "vslavik";
repo = "poedit";
rev = "v${version}-oss";
hash = "sha256-Lb1R7GMB0GeS2xZASR7w4ee33mMEKP9gPabRHkHlIJI=";
};
nativeBuildInputs = [
autoconf
automake
asciidoc
wrapGAppsHook3
libxslt
xmlto
boost
libtool
pkg-config
];
buildInputs = [
lucenepp
nlohmann_json
wxGTK32
icu
pugixml
gtk3
gtkspell3
hicolor-icon-theme
];
propagatedBuildInputs = [ gettext ];
preConfigure = "
patchShebangs bootstrap
./bootstrap
";
configureFlags = [
"--without-cld2"
"--without-cpprest"
"--with-boost-libdir=${boost.out}/lib"
"CPPFLAGS=-I${nlohmann_json}/include/nlohmann/"
"LDFLAGS=-llucene++"
];
preFixup = ''
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ gettext ]}")
'';
enableParallelBuilding = true;
meta = with lib; {
description = "Cross-platform gettext catalogs (.po files) editor";
mainProgram = "poedit";
homepage = "https://www.poedit.net/";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ dasj19 ];
# configure: error: GTK+ build of wxWidgets is required
broken = stdenv.hostPlatform.isDarwin;
};
}