Skip to content

Commit

Permalink
opentracker: use makeFlags instead of patching (refactoring)
Browse files Browse the repository at this point in the history
Co-authored-by: Mic92 (Jörg Thalheim)
  • Loading branch information
wamserma committed Dec 7, 2020
1 parent 3e27c46 commit 717beb9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkgs/applications/networking/p2p/opentracker/default.nix
Expand Up @@ -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
Expand Down

0 comments on commit 717beb9

Please sign in to comment.