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
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
cairo,
|
|
expat,
|
|
ffmpeg,
|
|
libexif,
|
|
pango,
|
|
pkg-config,
|
|
wxGTK32,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "wxsvg";
|
|
version = "1.5.25";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/wxsvg/wxsvg/${finalAttrs.version}/wxsvg-${finalAttrs.version}.tar.bz2";
|
|
hash = "sha256-W/asaDG1S9Ga70jN6PoFctu2PzCu6dUyP2vms/MmU0s=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Apply upstream patch for gcc-13 support:
|
|
# https://sourceforge.net/p/wxsvg/git/ci/7b17fe365fb522618fb3520d7c5c1109b138358f/
|
|
sed -i src/cairo/SVGCanvasCairo.cpp -e '1i #include <cstdint>'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
expat
|
|
ffmpeg
|
|
libexif
|
|
pango
|
|
wxGTK32
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
homepage = "https://wxsvg.sourceforge.net/";
|
|
description = "SVG manipulation library built with wxWidgets";
|
|
mainProgram = "svgview";
|
|
longDescription = ''
|
|
wxSVG is C++ library to create, manipulate and render Scalable Vector
|
|
Graphics (SVG) files with the wxWidgets toolkit.
|
|
'';
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = [ ];
|
|
inherit (wxGTK32.meta) platforms;
|
|
};
|
|
})
|