default.nix (795B)
1 { lib, stdenv, fetchgit, cmake, expat, exiv2 }: 2 3 stdenv.mkDerivation { 4 pname = "gpxtools"; 5 version = "2022-01-11"; 6 7 src = fetchgit { 8 url = "https://notabug.org/irdvo/gpxtools.git"; 9 rev = "45b7b8f5a42d8426f2fc998d017d2f224943f959"; 10 sha256 = "sha256-hhvxQ+2jOvY0OVt8iKQ9XcHgRN4ECywV1W1fKV7Q9Mo="; 11 }; 12 13 nativeBuildInputs = [ cmake ]; 14 buildInputs = [ expat ]; 15 16 postPatch = '' 17 substituteInPlace gpxgeotag.cpp \ 18 --replace "exiv2" "${exiv2}/bin/exiv2" 19 ''; 20 21 installPhase = "install -Dm755 gpx* -t $out/bin"; 22 23 meta = with lib; { 24 description = "A collection of c++ tools for using GPX files"; 25 homepage = "https://notabug.org/irdvo/gpxtools"; 26 license = licenses.gpl3Only; 27 maintainers = [ maintainers.sikmir ]; 28 platforms = platforms.unix; 29 }; 30 }