2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, gtk-doc, pkg-config, libuuid,
|
2019-09-14 20:46:09 +00:00
|
|
|
libtool, readline, gobject-introspection, json-glib, lvm2, libxslt, docbook_xsl
|
|
|
|
, fetchpatch }:
|
2018-08-01 09:40:07 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-11-10 01:13:39 +00:00
|
|
|
pname = "ldmtool";
|
|
|
|
version = "0.2.4";
|
2018-08-01 09:40:07 +00:00
|
|
|
|
2019-11-10 01:13:39 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdbooth";
|
|
|
|
repo = "libldm";
|
|
|
|
rev = "libldm-${version}";
|
|
|
|
sha256 = "1fy5wbmk8kwl86lzswq0d1z2j5y023qzfm2ppm8knzv9c47kniqk";
|
|
|
|
};
|
2018-08-01 09:40:07 +00:00
|
|
|
|
2019-09-14 20:46:09 +00:00
|
|
|
patches = [
|
|
|
|
# Remove useage of deprecrated G_PARAM_PRIVATE
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/mdbooth/libldm/commit/ee1b37a034038f09d61b121cc8b3651024acc46f.patch";
|
|
|
|
sha256 = "02y34kbcpcpffvy1n9yqngvdldmxmvdkha1v2xjqvrnclanpigcp";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-11-10 01:13:39 +00:00
|
|
|
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-08-01 09:40:07 +00:00
|
|
|
|
2019-11-10 01:13:39 +00:00
|
|
|
# glib-2.62 deprecations
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
|
2018-09-18 16:08:59 +00:00
|
|
|
|
2019-11-10 01:13:39 +00:00
|
|
|
configureScript = "sh autogen.sh";
|
2018-08-01 09:40:07 +00:00
|
|
|
|
2023-06-22 11:49:31 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoconf automake gobject-introspection ];
|
2022-03-31 01:11:06 +00:00
|
|
|
buildInputs = [ gtk-doc lvm2 libxslt.bin
|
2023-06-22 11:49:31 +00:00
|
|
|
libtool readline json-glib libuuid
|
2019-11-10 01:13:39 +00:00
|
|
|
];
|
2018-08-01 09:40:07 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-10 01:13:39 +00:00
|
|
|
description = "Tool and library for managing Microsoft Windows Dynamic Disks";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mdbooth/libldm";
|
2019-11-10 01:13:39 +00:00
|
|
|
maintainers = with maintainers; [ jensbin ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2018-08-01 09:40:07 +00:00
|
|
|
}
|