opentracker: use makeFlags instead of patching (refactoring)
Co-authored-by: Mic92 (Jörg Thalheim)
This commit is contained in:
parent
3e27c4662a
commit
717beb92fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user