python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / ldmtool / default.nix
blob9635f8e1a8cceaa1d81724d709de6f61abe0ae3f
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   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
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   };