Files
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

78 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchurl,
fetchpatch,
pkg-config,
gettext,
gtk-doc,
gobject-introspection,
python3,
gtk3,
cairo,
glib,
gnome,
}:
stdenv.mkDerivation rec {
pname = "goocanvas";
version = "2.0.4";
outputs = [
"out"
"dev"
"devdoc"
];
src = fetchurl {
url = "mirror://gnome/sources/goocanvas/2.0/goocanvas-${version}.tar.xz";
sha256 = "141fm7mbqib0011zmkv3g8vxcjwa7hypmq71ahdyhnj2sjvy4a67";
};
nativeBuildInputs = [
pkg-config
gettext
gtk-doc
python3
gobject-introspection
];
buildInputs = [
gtk3
cairo
glib
];
# add fedora patch to fix gcc-14 build
# https://src.fedoraproject.org/rpms/goocanvas2/tree/main
patches = [
(fetchpatch {
name = "goocanvas-2.0.4-Fix-building-with-GCC-14.patch";
hash = "sha256-9uqqC1uKZF9TDz5dfDTKSRCmjEiuvqkLnZ9w6U+q2TI=";
url = "https://src.fedoraproject.org/rpms/goocanvas2/raw/e799612a277262a0c6bd03db10a6ee9ca7871b9c/f/goocanvas-2.0.4-Fix-building-with-GCC-14.patch";
})
];
configureFlags = [
"--disable-python"
];
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "$(dev)/share/gir-1.0";
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR = "$(out)/lib/girepository-1.0";
passthru = {
updateScript = gnome.updateScript {
attrPath = "goocanvas${lib.versions.major version}";
packageName = "goocanvas";
versionPolicy = "odd-unstable";
freeze = true;
};
};
meta = with lib; {
description = "Canvas widget for GTK based on the the Cairo 2D library";
homepage = "https://gitlab.gnome.org/Archive/goocanvas";
license = licenses.lgpl2;
maintainers = [ ];
platforms = platforms.unix;
};
}