1 { lib, stdenv, fetchFromGitHub, autoconf, automake, gtk-doc, pkg-config, libuuid,
2 libtool, readline, gobject-introspection, json-glib, lvm2, libxslt, docbook_xsl
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
12 rev = "libldm-${version}";
13 sha256 = "1fy5wbmk8kwl86lzswq0d1z2j5y023qzfm2ppm8knzv9c47kniqk";
17 # Remove useage of deprecrated G_PARAM_PRIVATE
19 url = "https://github.com/mdbooth/libldm/commit/ee1b37a034038f09d61b121cc8b3651024acc46f.patch";
20 sha256 = "02y34kbcpcpffvy1n9yqngvdldmxmvdkha1v2xjqvrnclanpigcp";
25 sed -i docs/reference/ldmtool/Makefile.am \
26 -e 's|-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl|--nonet ${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl|g'
29 # glib-2.62 deprecations
30 NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
32 configureScript = "sh autogen.sh";
34 nativeBuildInputs = [ pkg-config autoconf automake ];
35 buildInputs = [ gtk-doc lvm2 libxslt.bin
36 libtool readline gobject-introspection json-glib libuuid
40 description = "Tool and library for managing Microsoft Windows Dynamic Disks";
41 homepage = "https://github.com/mdbooth/libldm";
42 maintainers = with maintainers; [ jensbin ];
43 license = licenses.gpl3;
44 platforms = platforms.linux;