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