From 42e4f90afb6476faf5245e175a0d68bd383e4ac6 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 8 May 2018 14:51:52 -0500 Subject: [PATCH] thin-provisioning-tools: fix build w/musl re:PAGE_SIZE --- pkgs/tools/misc/thin-provisioning-tools/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/misc/thin-provisioning-tools/default.nix b/pkgs/tools/misc/thin-provisioning-tools/default.nix index 26fca485fec2..64b059bbfea0 100644 --- a/pkgs/tools/misc/thin-provisioning-tools/default.nix +++ b/pkgs/tools/misc/thin-provisioning-tools/default.nix @@ -15,6 +15,11 @@ stdenv.mkDerivation rec { buildInputs = [ expat libaio boost ]; + postPatch = stdenv.lib.optional stdenv.hostPlatform.isMusl '' + sed -i -e '/PAGE_SIZE/d' -e '1i#include ' \ + block-cache/io_engine.h unit-tests/io_engine_t.cc + ''; + 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";