mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
thin-provisioning-tools: fix build w/musl re:PAGE_SIZE
This commit is contained in:
parent
26abaa0257
commit
42e4f90afb
|
@ -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 <limits.h>' \
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue