3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/ldmtool/default.nix

47 lines
1.5 KiB
Nix
Raw Normal View History

2018-08-01 10:40:07 +01:00
{ stdenv, fetchFromGitHub, autoconf, automake, gtk-doc, pkgconfig, libuuid,
2019-09-14 21:46:09 +01:00
libtool, readline, gobject-introspection, json-glib, lvm2, libxslt, docbook_xsl
, fetchpatch }:
2018-08-01 10:40:07 +01:00
stdenv.mkDerivation rec {
pname = "ldmtool";
version = "0.2.4";
2018-08-01 10:40:07 +01:00
src = fetchFromGitHub {
owner = "mdbooth";
repo = "libldm";
rev = "libldm-${version}";
sha256 = "1fy5wbmk8kwl86lzswq0d1z2j5y023qzfm2ppm8knzv9c47kniqk";
};
2018-08-01 10:40:07 +01:00
2019-09-14 21:46:09 +01:00
patches = [
# Remove useage of deprecrated G_PARAM_PRIVATE
(fetchpatch {
url = "https://github.com/mdbooth/libldm/commit/ee1b37a034038f09d61b121cc8b3651024acc46f.patch";
sha256 = "02y34kbcpcpffvy1n9yqngvdldmxmvdkha1v2xjqvrnclanpigcp";
})
];
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 10:40:07 +01:00
# glib-2.62 deprecations
NIX_CFLAGS_COMPILE = "-DGLIB_DISABLE_DEPRECATION_WARNINGS";
configureScript = "sh autogen.sh";
2018-08-01 10:40:07 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ autoconf automake gtk-doc lvm2 libxslt.bin
libtool readline gobject-introspection json-glib libuuid
];
2018-08-01 10:40:07 +01: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;
};
2018-08-01 10:40:07 +01:00
}