gpxsee: enable on darwin

This commit is contained in:
Nikolay Korotkiy 2020-01-29 13:07:56 +03:00
parent 40e30f9652
commit 581f28ef3c
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

@ -1,4 +1,4 @@
{ mkDerivation, lib, fetchFromGitHub, qmake, qttools }:
{ stdenv, mkDerivation, lib, fetchFromGitHub, qmake, qttools }:
mkDerivation rec {
pname = "gpxsee";
@ -18,6 +18,12 @@ mkDerivation rec {
lrelease lang/*.ts
'';
postInstall = lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
mv GPXSee.app $out/Applications
wrapQtApp $out/Applications/GPXSee.app/Contents/MacOS/GPXSee
'';
enableParallelBuilding = true;
meta = with lib; {
@ -29,6 +35,6 @@ mkDerivation rec {
'';
license = licenses.gpl3;
maintainers = with maintainers; [ womfoo sikmir ];
platforms = platforms.linux;
platforms = with platforms; linux ++ darwin;
};
}