summary refs log tree commit diff
path: root/pkgs/development/libraries/pugixml
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2015-09-08 13:52:44 +0200
committerPascal Wittmann <mail@pascal-wittmann.de>2015-09-08 13:53:28 +0200
commitc3f33be3abcc2b6a51b9523c037e462d6f667a37 (patch)
tree1ebd0cff62e55597f91f0d53fa18eb1b90b0bba0 /pkgs/development/libraries/pugixml
parent7ed4046d90ebaa27d235683a031936e3f741f083 (diff)
downloadnixpkgs-c3f33be3abcc2b6a51b9523c037e462d6f667a37.tar
nixpkgs-c3f33be3abcc2b6a51b9523c037e462d6f667a37.tar.gz
nixpkgs-c3f33be3abcc2b6a51b9523c037e462d6f667a37.tar.bz2
nixpkgs-c3f33be3abcc2b6a51b9523c037e462d6f667a37.tar.lz
nixpkgs-c3f33be3abcc2b6a51b9523c037e462d6f667a37.tar.xz
nixpkgs-c3f33be3abcc2b6a51b9523c037e462d6f667a37.tar.zst
nixpkgs-c3f33be3abcc2b6a51b9523c037e462d6f667a37.zip
pugixml: init at 1.6
Diffstat (limited to 'pkgs/development/libraries/pugixml')
-rw-r--r--pkgs/development/libraries/pugixml/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/libraries/pugixml/default.nix b/pkgs/development/libraries/pugixml/default.nix
new file mode 100644
index 00000000000..153d3ce8e80
--- /dev/null
+++ b/pkgs/development/libraries/pugixml/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl, cmake }:
+
+stdenv.mkDerivation rec {
+  name = "pugixml-${version}";
+  version = "1.6";
+
+  src = fetchurl {
+    url = "https://github.com/zeux/pugixml/releases/download/v${version}/${name}.tar.gz";
+    sha256 = "1pnrdi8n9fdclmhxri3jwc6xwpgvblbjnqkk9ykycpnljv20ads7";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  sourceRoot = "${name}/scripts";
+
+  preConfigure = ''
+    # Enable long long support (required for filezilla)
+    sed -ire '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' ../src/pugiconfig.hpp
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Light-weight, simple and fast XML parser for C++ with XPath support";
+    homepage = http://pugixml.org/;
+    license = licenses.mit;
+    maintainers = with maintainers; [ pSub ];
+    platforms = platforms.linux;
+  };
+}