Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, mkDerivation, lib, fetchFromGitHub, substituteAll 2, qmake, qttools, qttranslations 3}: 4 5mkDerivation rec { 6 pname = "gpxlab"; 7 version = "0.7.0"; 8 9 src = fetchFromGitHub { 10 owner = "BourgeoisLab"; 11 repo = "GPXLab"; 12 rev = "v${version}"; 13 sha256 = "080vnwcciqblfrbfyz9gjhl2lqw1hkdpbgr5qfrlyglkd4ynjd84"; 14 }; 15 16 patches = (substituteAll { 17 # See https://github.com/NixOS/nixpkgs/issues/86054 18 src = ./fix-qttranslations-path.patch; 19 inherit qttranslations; 20 }); 21 22 nativeBuildInputs = [ qmake qttools ]; 23 24 preConfigure = '' 25 lrelease GPXLab/locale/*.ts 26 ''; 27 28 postInstall = lib.optionalString stdenv.isDarwin '' 29 mkdir -p $out/Applications 30 mv GPXLab/GPXLab.app $out/Applications 31 ''; 32 33 meta = with lib; { 34 homepage = "https://github.com/BourgeoisLab/GPXLab"; 35 description = "Program to show and manipulate GPS tracks"; 36 longDescription = '' 37 GPXLab is an application to display and manage GPS tracks 38 previously recorded with a GPS tracker. 39 ''; 40 license = licenses.gpl3Only; 41 maintainers = with maintainers; [ sikmir ]; 42 platforms = platforms.unix; 43 }; 44}