mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
libdevil: Drop redundant sed
s
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:
parent
edaab670f8
commit
34165eab42
@ -41,14 +41,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-Wno-register";
|
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-Wno-register";
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed -i 's, -std=gnu99,,g' configure
|
|
||||||
sed -i 's,malloc.h,stdlib.h,g' src-ILU/ilur/ilur.c
|
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 = [
|
patches = [
|
||||||
|
Loading…
Reference in New Issue
Block a user