mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
40 lines
970 B
Nix
40 lines
970 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";
|
|
mainProgram = "gpxlab";
|
|
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;
|
|
};
|
|
}
|