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