Skip to content

Commit

Permalink
opentracker: combine calls to substituteInPlace (refactoring)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
  • Loading branch information
wamserma and SuperSandro2000 committed Dec 4, 2020
1 parent c494e27 commit 3e27c46
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkgs/applications/networking/p2p/opentracker/default.nix
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 3e27c46

Please sign in to comment.