nixpkgs/pkgs/development/libraries/gdome2/default.nix
Sergei Trofimovich 884ebdc49c gdome2: fix build on -fno-common toolchains
Example of such toolchain is clang-12:

    $ nix-build -E 'with import ./. { }; gdome2.override { stdenv = clang12Stdenv; }'
    ...
    libgdome/xpath/gdome-xpath-xpnsresolv.c:33:
      multiple definition of `gdome_xpath_xpnsresolv_vtab';
      gdome-xpath.lo:libgdome/xpath/gdome-xpath-xpnsresolv.h:45: first defined here
2021-09-29 20:22:06 +01:00

34 lines
825 B
Nix

{lib, stdenv, fetchurl, pkg-config, glib, libxml2, gtk-doc}:
let
pname = "gdome2";
version = "0.8.1";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "http://gdome2.cs.unibo.it/tarball/${pname}-${version}.tar.gz";
sha256 = "0hyms5s3hziajp3qbwdwqjc2xcyhb783damqg8wxjpwfxyi81fzl";
};
hardeningDisable = [ "format" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ glib libxml2 gtk-doc ];
propagatedBuildInputs = [glib libxml2];
patches = [
./xml-document.patch
./fno-common.patch
];
meta = with lib; {
homepage = "http://gdome2.cs.unibo.it/";
description = "DOM C library developed for the Gnome project";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ prikhi roconnor ];
platforms = platforms.linux;
};
}