opentracker: combine calls to substituteInPlace (refactoring)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Markus Wamser 2020-12-04 16:16:10 +01:00 committed by Markus S. Wamser
parent c494e27999
commit 3e27c4662a

View file

@ -12,12 +12,9 @@ stdenv.mkDerivation {
buildInputs = [ libowfat zlib ];
postPatch = ''
substituteInPlace Makefile --replace \
'LIBOWFAT_HEADERS=$(PREFIX)/libowfat' \
'LIBOWFAT_HEADERS=${libowfat}/include/libowfat'
substituteInPlace Makefile --replace \
'LIBOWFAT_LIBRARY=$(PREFIX)/libowfat' \
'LIBOWFAT_LIBRARY=${libowfat}/lib'
substituteInPlace Makefile \
--replace 'LIBOWFAT_HEADERS=$(PREFIX)/libowfat' 'LIBOWFAT_HEADERS=${libowfat}/include/libowfat' \
--replace 'LIBOWFAT_LIBRARY=$(PREFIX)/libowfat' 'LIBOWFAT_LIBRARY=${libowfat}/lib'
'';
installPhase = ''