commit 5507e37183ee698f8b130062726d49f4141bedd8
parent 64733ff646eceb2f50910c64e0d6ae6b744d80a7
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Tue, 21 Apr 2020 12:16:03 +0300
gpxtools: fix exiv2 path
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pkgs/tools/geo/gpxtools/default.nix b/pkgs/tools/geo/gpxtools/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, cmake, expat, sources }:
+{ stdenv, cmake, expat, exiv2, sources }:
stdenv.mkDerivation rec {
pname = "gpxtools";
@@ -8,6 +8,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ expat ];
+ postPatch = ''
+ substituteInPlace gpxgeotag.cpp \
+ --replace "exiv2" "${exiv2}/bin/exiv2"
+ '';
+
installPhase = ''
install -Dm755 gpx* -t $out/bin
'';