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