default.nix (841B)
1 { lib, stdenv, fetchFromGitea, cmake, expat, exiv2 }: 2 3 stdenv.mkDerivation { 4 pname = "gpxtools"; 5 version = "0-unstable-2023-08-13"; 6 7 src = fetchFromGitea { 8 domain = "notabug.org"; 9 owner = "irdvo"; 10 repo = "gpxtools"; 11 rev = "bad31cc7e278c835db196ed4013551034c606f09"; 12 hash = "sha256-QFjHlUByD4iqEUDYhl3dcol3B8sGV+BLN7IumqQXxdA="; 13 }; 14 15 nativeBuildInputs = [ cmake ]; 16 buildInputs = [ expat ]; 17 18 postPatch = '' 19 substituteInPlace gpxgeotag.cpp \ 20 --replace-fail "exiv2" "${exiv2}/bin/exiv2" 21 ''; 22 23 installPhase = "install -Dm755 gpx* -t $out/bin"; 24 25 meta = with lib; { 26 description = "A collection of c++ tools for using GPX files"; 27 homepage = "https://notabug.org/irdvo/gpxtools"; 28 license = licenses.gpl3Only; 29 maintainers = [ maintainers.sikmir ]; 30 platforms = platforms.unix; 31 }; 32 }