2018-08-01 11:40:07 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf, automake, gtk-doc, pkgconfig, libuuid,
|
2018-12-02 12:41:15 +01:00
|
|
|
libtool, readline, gobject-introspection, json-glib, lvm2, libxslt, docbook_xsl }:
|
2018-08-01 11:40:07 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ldmtool-${version}";
|
|
|
|
version = "0.2.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdbooth";
|
|
|
|
repo = "libldm";
|
|
|
|
rev = "libldm-${version}";
|
|
|
|
sha256 = "1fy5wbmk8kwl86lzswq0d1z2j5y023qzfm2ppm8knzv9c47kniqk";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i docs/reference/ldmtool/Makefile.am \
|
|
|
|
-e 's|-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl|--nonet ${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl|g'
|
|
|
|
'';
|
|
|
|
|
2018-09-18 18:08:59 +02:00
|
|
|
# ldm.c:951:5: error: 'g_type_class_add_private' is deprecated [-Werror=deprecated-declarations]
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
|
|
|
2018-08-01 11:40:07 +02:00
|
|
|
configureScript = "sh autogen.sh";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ autoconf automake gtk-doc lvm2 libxslt.bin
|
2018-12-02 12:41:15 +01:00
|
|
|
libtool readline gobject-introspection json-glib libuuid
|
2018-08-01 11:40:07 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tool and library for managing Microsoft Windows Dynamic Disks";
|
|
|
|
homepage = https://github.com/mdbooth/libldm;
|
|
|
|
maintainers = with maintainers; [ jensbin ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|