libdevil: Drop redundant seds

Drop several sed commands, std=gnu99 is no longer passed, there's no
file passing AM_FLAGS and there's no RESTRICT_KEYWORD to delete.
This commit is contained in:
toonn 2024-06-12 14:10:09 +02:00
parent edaab670f8
commit 34165eab42
No known key found for this signature in database
GPG Key ID: 89EECD463032D959

View File

@ -41,14 +41,7 @@ stdenv.mkDerivation (finalAttrs: {
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-Wno-register";
preConfigure = ''
sed -i 's, -std=gnu99,,g' configure
sed -i 's,malloc.h,stdlib.h,g' src-ILU/ilur/ilur.c
'' + lib.optionalString stdenv.cc.isClang ''
sed -i 's/libIL_la_CXXFLAGS = $(AM_CFLAGS)/libIL_la_CXXFLAGS =/g' lib/Makefile.in
'';
postConfigure = ''
sed -i '/RESTRICT_KEYWORD/d' include/IL/config.h
'';
patches = [