default.nix (973B)
1 { lib, stdenv, fetchFromGitHub, qmake, qtserialport, wrapQtAppsHook }: 2 3 stdenv.mkDerivation { 4 pname = "visualgps"; 5 version = "2020-03-29"; 6 7 src = fetchFromGitHub { 8 owner = "VisualGPS"; 9 repo = "VisualGPSqt"; 10 rev = "f2e213208a48e1f7d7294bc832a848de4efb4fd4"; 11 hash = "sha256-1x9V75Y2QgMw3oTERHiFopFxFyWRJhGKaDK/raPqxjg="; 12 fetchSubmodules = true; 13 }; 14 15 nativeBuildInputs = [ qmake wrapQtAppsHook ]; 16 17 buildInputs = [ qtserialport ]; 18 19 qmakeFlags = [ "Software/VisualGPSqt/Source/VisualGPSqt.pro" ]; 20 21 postInstall = 22 if stdenv.isDarwin then '' 23 mkdir -p $out/Applications 24 mv *.app $out/Applications 25 '' else '' 26 install -Dm755 VisualGPSqt -t $out/bin 27 ''; 28 29 meta = with lib; { 30 description = "A QT application (GUI) that makes use of the VisualGPS/NMEAParser project"; 31 homepage = "http://visualgps.net/"; 32 license = licenses.mit; 33 maintainers = [ maintainers.sikmir ]; 34 platforms = platforms.unix; 35 }; 36 }