Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, fetchFromGitHub, autoconf, automake, gtk-doc, pkgconfig, libuuid,
2 libtool, readline, gobject-introspection, json-glib, lvm2, libxslt, docbook_xsl }:
3
4stdenv.mkDerivation rec {
5 name = "ldmtool-${version}";
6 version = "0.2.4";
7
8 src = fetchFromGitHub {
9 owner = "mdbooth";
10 repo = "libldm";
11 rev = "libldm-${version}";
12 sha256 = "1fy5wbmk8kwl86lzswq0d1z2j5y023qzfm2ppm8knzv9c47kniqk";
13 };
14
15 preConfigure = ''
16 sed -i docs/reference/ldmtool/Makefile.am \
17 -e 's|-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl|--nonet ${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl|g'
18 '';
19
20 # ldm.c:951:5: error: 'g_type_class_add_private' is deprecated [-Werror=deprecated-declarations]
21 NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
22
23 configureScript = "sh autogen.sh";
24
25 nativeBuildInputs = [ pkgconfig ];
26 buildInputs = [ autoconf automake gtk-doc lvm2 libxslt.bin
27 libtool readline gobject-introspection json-glib libuuid
28 ];
29
30 meta = with stdenv.lib; {
31 description = "Tool and library for managing Microsoft Windows Dynamic Disks";
32 homepage = https://github.com/mdbooth/libldm;
33 maintainers = with maintainers; [ jensbin ];
34 license = licenses.gpl3;
35 platforms = platforms.linux;
36 };
37}