1{ stdenv, fetchFromGitHub, lib, cmake, expat }:
2
3stdenv.mkDerivation rec {
4 pname = "libwbxml";
5 version = "0.11.8";
6
7 src = fetchFromGitHub {
8 owner = "libwbxml";
9 repo = "libwbxml";
10 rev = "${pname}-${version}";
11 sha256 = "sha256-WCVKfIk6R2rVaz1SbJL9eLqNC0f4VzL74Sw2IKdDE9I=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ expat ];
16
17 postPatch = ''
18 sed -i 's/^SET.*$//' cmake/CMakeLists.txt
19 '';
20
21 meta = with lib; {
22 homepage = "https://github.com/libwbxml/libwbxml";
23 description = "The WBXML Library (aka libwbxml) contains a library and its associated tools to Parse, Encode and Handle WBXML documents";
24 maintainers = with maintainers; [ mh ];
25 platforms = platforms.linux;
26 license = licenses.lgpl21Plus;
27 };
28}