default.nix (848B)
1 { lib, stdenv, fetchFromGitHub, boost, qt5 }: 2 3 stdenv.mkDerivation (finalAttrs: { 4 pname = "gps-whatsnew"; 5 version = "2017-01-23"; 6 7 src = fetchFromGitHub { 8 owner = "centurn"; 9 repo = "gps-whatsnew"; 10 rev = "b856f0b7472ed6287920a41568d951e0a0330387"; 11 hash = "sha256-lZSjFdaQizXYi0OTChOKrSwllgzOCy6gTbBohcegJxk="; 12 }; 13 14 postPatch = '' 15 sed -i '1 i #include <iostream>' gps_analyze.cpp 16 ''; 17 18 nativeBuildInputs = [ qt5.qmake ]; 19 buildInputs = [ boost ]; 20 21 dontWrapQtApps = true; 22 23 installPhase = '' 24 install -Dm755 gps-whatsnew -t $out/bin 25 ''; 26 27 meta = with lib; { 28 description = "Compare gpx tracks to find new segments (places never traveled before)"; 29 inherit (finalAttrs.src.meta) homepage; 30 license = licenses.gpl3Only; 31 maintainers = [ maintainers.sikmir ]; 32 platforms = platforms.unix; 33 }; 34 })