indent: fix on darwin
This commit is contained in:
parent
a28ca06298
commit
2f08af9379
@ -7,11 +7,15 @@ stdenv.mkDerivation rec {
|
|||||||
url = "mirror://gnu/indent/${name}.tar.gz";
|
url = "mirror://gnu/indent/${name}.tar.gz";
|
||||||
sha256 = "0f9655vqdvfwbxvs1gpa7py8k1z71aqh8hp73f65vazwbfz436wa";
|
sha256 = "0f9655vqdvfwbxvs1gpa7py8k1z71aqh8hp73f65vazwbfz436wa";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
sed -i 's|#include <malloc.h>|#include <malloc/malloc.h>|' ./man/texinfo2man.c
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://www.gnu.org/software/indent/;
|
homepage = https://www.gnu.org/software/indent/;
|
||||||
description = "A source code reformatter";
|
description = "A source code reformatter";
|
||||||
license = stdenv.lib.licenses.gpl3Plus;
|
license = stdenv.lib.licenses.gpl3Plus;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user