python311Packages.moto: 4.2.6 -> 4.2.10
[NixPkgs.git] / pkgs / tools / misc / ldmtool / default.nix
blob51e3a77d8d68d8c0f3acef3aa41c4f4a0590f698
1 { lib, stdenv, fetchFromGitHub, autoconf, automake, gtk-doc, pkg-config, libuuid,
2   libtool, readline, gobject-introspection, json-glib, lvm2, libxslt, docbook_xsl
3 , fetchpatch }:
5 stdenv.mkDerivation rec {
6   pname = "ldmtool";
7   version = "0.2.4";
9   src = fetchFromGitHub {
10     owner = "mdbooth";
11     repo = "libldm";
12     rev = "libldm-${version}";
13     sha256 = "1fy5wbmk8kwl86lzswq0d1z2j5y023qzfm2ppm8knzv9c47kniqk";
14   };
16   patches = [
17     # Remove useage of deprecrated G_PARAM_PRIVATE
18     (fetchpatch {
19       url = "https://github.com/mdbooth/libldm/commit/ee1b37a034038f09d61b121cc8b3651024acc46f.patch";
20       sha256 = "02y34kbcpcpffvy1n9yqngvdldmxmvdkha1v2xjqvrnclanpigcp";
21     })
22   ];
24   preConfigure = ''
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'
27   '';
29   # glib-2.62 deprecations
30   env.NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
32   configureScript = "sh autogen.sh";
34   nativeBuildInputs = [ pkg-config autoconf automake gobject-introspection ];
35   buildInputs = [ gtk-doc lvm2 libxslt.bin
36     libtool readline json-glib libuuid
37   ];
39   meta = with lib; {
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;
45   };