@@ -1,33 +1,19 @@
1−{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, expat, libaio, boost }:
1+{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, expat, libaio, boost, binutils }:
22
33stdenv.mkDerivation rec {
44 pname = "thin-provisioning-tools";
5− version = "0.7.6";
5+ version = "0.9.0";
66
77 src = fetchFromGitHub {
88 owner = "jthornber";
99 repo = "thin-provisioning-tools";
1010 rev = "v${version}";
11− sha256 = "175mk3krfdmn43cjw378s32hs62gq8fmq549rjmyc651sz6jnj0g";
11+ sha256 = "1iwg04rhmdhijmlk5hfl8wvv83115lzb65if6cc1glkkfva8jfjp";
1212 };
1313
1414 nativeBuildInputs = [ autoreconfHook ];
1515
16− buildInputs = [ expat libaio boost ];
17−
18− patches = [
19− (fetchpatch {
20− # a) Fix build if limits.h provides definition for PAGE_SIZE, as musl does w/musl per XSI[1] although it's apparently optional [2].
21− # This value is only provided when it's known to be a constant, to avoid the need to discover the value dynamically.
22− # b) If not using system-provided (kernel headers, or libc headers, or something) use the POSIX approach of querying the value
23− # dynamically using sysconf(_SC_PAGE_SIZE) instead of hardcoded value that hopefully is correct.
24− # [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html
25− # [2] http://www.openwall.com/lists/musl/2015/09/11/8
26− url = "https://raw.githubusercontent.com/void-linux/void-packages/a0ece13ad7ab2aae760e09e41e0459bd999a3695/srcpkgs/thin-provisioning-tools/patches/musl.patch";
27− sha256 = "1m8r3vhrnsy8drgs0svs3fgpi3mmxzdcqsv6bmvc0j52cvfqvhvy";
28− extraPrefix = ""; # empty means add 'a/' and 'b/'
29− })
30− ];
16+ buildInputs = [ expat libaio boost binutils ];
3117
3218 enableParallelBuilding = true;
3319