default.nix (992B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 expat, 7 }: 8 9 stdenv.mkDerivation { 10 pname = "gpxlib"; 11 version = "0-unstable-2021-02-16"; 12 13 src = fetchFromGitHub { 14 owner = "irdvo"; 15 repo = "gpxlib"; 16 rev = "43df92be29412b7f3b58e63ebea516df9f15b883"; 17 hash = "sha256-Ai6d2N0H+V/xzWVYL/jfJtQMaUVpY0ecNCISfugbE2k="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 22 buildInputs = [ expat ]; 23 24 cmakeFlags = [ 25 (lib.cmakeBool "BUILD_EXAMPLES" false) 26 (lib.cmakeBool "BUILD_TESTS" false) 27 ]; 28 29 doCheck = false; 30 checkPhase = '' 31 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/gpx 32 export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/gpx 33 test/gpxcheck 34 ''; 35 36 meta = { 37 description = "A c++ library for parsing, browsing, changing and writing of GPX files"; 38 homepage = "http://irdvo.nl/gpxlib/"; 39 license = lib.licenses.lgpl3Plus; 40 maintainers = [ lib.maintainers.sikmir ]; 41 platforms = lib.platforms.unix; 42 }; 43 }