summary refs log tree commit diff
path: root/pkgs/development/libraries/libnixxml/default.nix
blob: 40459dbca22a6088d34d19ddf60e2df6882f5f27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ fetchFromGitHub, lib, stdenv, autoreconfHook, pkg-config, libxml2, gd, glib, getopt, libxslt, nix }:

stdenv.mkDerivation {
  pname = "libnixxml";
  version = "unstable-2020-06-25";

  src = fetchFromGitHub {
    owner = "svanderburg";
    repo = "libnixxml";
    rev = "54c04a5fdbc8661b2445a7527f499e0a77753a1a";
    sha256 = "sha256-HKQnCkO1TDs1e0MDil0Roq4YRembqRHQvb7lK3GAftQ=";
  };

  preConfigure = ''
    ./bootstrap
  '';

  configureFlags = [ "--with-gd" "--with-glib" ];
  CFLAGS = "-Wall";

  nativeBuildInputs = [ autoreconfHook pkg-config ];
  buildInputs = [ libxml2 gd.dev glib getopt libxslt nix ];

  doCheck = false;

  meta = with lib; {
    description = "XML-based Nix-friendly data integration library";
    homepage = "https://github.com/svanderburg/libnixxml";
    license = licenses.mit;
    maintainers = with maintainers; [ tomberek ];
    platforms = platforms.unix;
  };
}