opentracker: use makeFlags instead of patching (refactoring)

Co-authored-by: Mic92 (Jörg Thalheim)
This commit is contained in:
Markus S. Wamser 2020-12-07 23:46:43 +01:00
parent 3e27c4662a
commit 717beb92fa

View File

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