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