2016-10-05 19:28:28 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, expat, libaio, boost }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "thin-provisioning-tools-${version}";
|
2018-05-08 21:18:46 +01:00
|
|
|
version = "0.7.6";
|
2016-10-05 19:28:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jthornber";
|
|
|
|
repo = "thin-provisioning-tools";
|
|
|
|
rev = "v${version}";
|
2018-05-08 21:18:46 +01:00
|
|
|
sha256 = "175mk3krfdmn43cjw378s32hs62gq8fmq549rjmyc651sz6jnj0g";
|
2016-10-05 19:28:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ expat libaio boost ];
|
|
|
|
|
2018-05-08 20:51:52 +01:00
|
|
|
postPatch = stdenv.lib.optional stdenv.hostPlatform.isMusl ''
|
|
|
|
sed -i -e '/PAGE_SIZE/d' -e '1i#include <limits.h>' \
|
|
|
|
block-cache/io_engine.h unit-tests/io_engine_t.cc
|
|
|
|
'';
|
|
|
|
|
2018-05-08 21:23:32 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-10-05 19:28:28 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/jthornber/thin-provisioning-tools/;
|
|
|
|
description = "A suite of tools for manipulating the metadata of the dm-thin device-mapper target";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ globin ];
|
|
|
|
};
|
|
|
|
}
|