From c494e2799966fc678d988e135fa833b2d920445d Mon Sep 17 00:00:00 2001 From: "Markus S. Wamser" Date: Thu, 3 Dec 2020 15:21:54 +0100 Subject: [PATCH] opentracker: fix build for libowfat 0.32 --- pkgs/applications/networking/p2p/opentracker/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/networking/p2p/opentracker/default.nix b/pkgs/applications/networking/p2p/opentracker/default.nix index 82480b1ed21d..581560ae78b7 100644 --- a/pkgs/applications/networking/p2p/opentracker/default.nix +++ b/pkgs/applications/networking/p2p/opentracker/default.nix @@ -11,6 +11,15 @@ 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' + ''; + installPhase = '' runHook preInstall install -D opentracker $out/bin/opentracker