2021-02-05 17:12:51 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv, autoreconfHook, pkg-config, libxml2, gd, glib, getopt, libxslt, nix }:
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libnixxml";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "svanderburg";
|
|
|
|
repo = "libnixxml";
|
|
|
|
rev = "54c04a5fdbc8661b2445a7527f499e0a77753a1a";
|
|
|
|
sha256 = "sha256-HKQnCkO1TDs1e0MDil0Roq4YRembqRHQvb7lK3GAftQ=";
|
|
|
|
};
|
|
|
|
configureFlags = [ "--with-gd" "--with-glib" ];
|
|
|
|
CFLAGS = "-Wall";
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [ pkg-config libxml2 gd.dev glib getopt libxslt nix ];
|
2020-11-30 08:33:03 +00:00
|
|
|
doCheck = false;
|
|
|
|
postPatch = ''
|
|
|
|
./bootstrap
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-30 08:33:03 +00:00
|
|
|
description = "XML-based Nix-friendly data integration library";
|
|
|
|
homepage = https://github.com/svanderburg/libnixxml;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tomberek ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|