nixpkgs/pkgs/applications/misc/gpxlab/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2020-01-30 22:13:53 +01:00
{ stdenv, mkDerivation, lib, fetchFromGitHub, qmake, qttools, qttranslations }:
2019-08-27 18:00:53 +02:00
mkDerivation rec {
pname = "gpxlab";
version = "0.7.0";
src = fetchFromGitHub {
owner = "BourgeoisLab";
repo = "GPXLab";
rev = "v${version}";
sha256 = "080vnwcciqblfrbfyz9gjhl2lqw1hkdpbgr5qfrlyglkd4ynjd84";
};
nativeBuildInputs = [ qmake ];
buildInputs = [ qttools qttranslations ];
preConfigure = ''
lrelease GPXLab/locale/*.ts
'';
2020-01-30 22:13:53 +01:00
postInstall = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
mv GPXLab/GPXLab.app $out/Applications
wrapQtApp $out/Applications/GPXLab.app/Contents/MacOS/GPXLab
'';
2019-08-27 18:00:53 +02:00
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://github.com/BourgeoisLab/GPXLab";
description = "Program to show and manipulate GPS tracks";
longDescription = ''
GPXLab is an application to display and manage GPS tracks
previously recorded with a GPS tracker.
'';
license = licenses.gpl3;
maintainers = with maintainers; [ sikmir ];
2020-01-30 22:13:53 +01:00
platforms = with platforms; linux ++ darwin;
2019-08-27 18:00:53 +02:00
};
}