about summary refs log tree commit diff
path: root/pkgs/development/libraries/libnixxml
diff options
context:
space:
mode:
authortomberek <tomberek@users.noreply.github.com>2020-11-25 10:27:28 -0500
committerGitHub <noreply@github.com>2020-11-25 07:27:28 -0800
commitac0ac4fe51080f0815a0bc4928dc2b23c802fdb2 (patch)
tree079efd954088941c00d1a0a87bb2b9480a77928c /pkgs/development/libraries/libnixxml
parent4cd6676a79ee56527c709061beea7bce1e5ea853 (diff)
dydisnix: init at unstable (#49366)
* dydisnix: init at unstable-2018-04-26

updated with suggestions from @xeji

* Update pkgs/tools/package-management/disnix/dydisnix/default.nix

Co-Authored-By: Ryan Mulligan <ryan@ryantm.com>

* Add dydisxnix and libnixxml

Co-authored-by: Ryan Mulligan <ryan@ryantm.com>
Co-authored-by: Tom Bereknyei <tom@rebelliondefense.com>
Diffstat (limited to 'pkgs/development/libraries/libnixxml')
-rw-r--r--pkgs/development/libraries/libnixxml/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libnixxml/default.nix b/pkgs/development/libraries/libnixxml/default.nix
new file mode 100644
index 0000000000000..5741d4cb5b8ad
--- /dev/null
+++ b/pkgs/development/libraries/libnixxml/default.nix
@@ -0,0 +1,27 @@
+{ fetchFromGitHub, stdenv, autoreconfHook, pkgconfig, libxml2, gd, glib, getopt, libxslt, nix }:
+
+stdenv.mkDerivation {
+  name = "libnixxml";
+  src = fetchFromGitHub {
+    owner = "svanderburg";
+    repo = "libnixxml";
+    rev = "54c04a5fdbc8661b2445a7527f499e0a77753a1a";
+    sha256 = "sha256-HKQnCkO1TDs1e0MDil0Roq4YRembqRHQvb7lK3GAftQ=";
+  };
+  configureFlags = [ "--with-gd" "--with-glib" ];
+  CFLAGS = "-Wall";
+  nativeBuildInputs = [ autoreconfHook ];
+  buildInputs = [ pkgconfig libxml2 gd.dev glib getopt libxslt nix ];
+  doCheck = false;
+  postPatch = ''
+    ./bootstrap
+  '';
+
+  meta = with stdenv.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;
+  };
+}