nixpkgs/pkgs/applications/misc/gpxlab/default.nix
K900 6edd6f71c7 treewide: clean up all qttranslations workarounds
There are two kinds of changes here:
- removing explicit qttranslations path hardcoding from applications that were patched to do it
- replacing qttranslations in buildInputs with qttools for packages that really depend on the latter

After this, qttranslation is never used outside Qt itself, as it should.
2023-08-15 22:11:39 +03:00

39 lines
942 B
Nix

{ stdenv, mkDerivation, lib, fetchFromGitHub
, qmake, qttools
}:
mkDerivation rec {
pname = "gpxlab";
version = "0.7.0";
src = fetchFromGitHub {
owner = "BourgeoisLab";
repo = "GPXLab";
rev = "v${version}";
sha256 = "080vnwcciqblfrbfyz9gjhl2lqw1hkdpbgr5qfrlyglkd4ynjd84";
};
nativeBuildInputs = [ qmake qttools ];
preConfigure = ''
lrelease GPXLab/locale/*.ts
'';
postInstall = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
mv GPXLab/GPXLab.app $out/Applications
'';
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.gpl3Only;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
}