diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2020-09-27 16:56:41 -0400 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2020-09-27 17:00:10 -0400 |
commit | dd57dcf2a50642d1e8da793e7c070c379cf6c5bf (patch) | |
tree | a3d28cf6dd5511612f7c577e0c5b97961209ace0 /pkgs/applications/science/astronomy/stellarium | |
parent | e736a990c1b9e574f2e10f838fa6882a12bef424 (diff) |
stellarium: enable on darwin
Diffstat (limited to 'pkgs/applications/science/astronomy/stellarium')
-rw-r--r-- | pkgs/applications/science/astronomy/stellarium/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/applications/science/astronomy/stellarium/default.nix b/pkgs/applications/science/astronomy/stellarium/default.nix index 3cccaec2c4950..4c773208d5603 100644 --- a/pkgs/applications/science/astronomy/stellarium/default.nix +++ b/pkgs/applications/science/astronomy/stellarium/default.nix @@ -1,4 +1,4 @@ -{ mkDerivation, lib, fetchFromGitHub +{ stdenv, lib, mkDerivation, fetchFromGitHub , cmake, freetype, libpng, libGLU, libGL, openssl, perl, libiconv , qtscript, qtserialport, qttools , qtmultimedia, qtlocation, qtbase, wrapQtAppsHook @@ -22,12 +22,21 @@ mkDerivation rec { qtmultimedia qtlocation qtbase ]; + preConfigure = lib.optionalString stdenv.isDarwin '' + substituteInPlace CMakeLists.txt \ + --replace 'SET(CMAKE_INSTALL_PREFIX "''${PROJECT_BINARY_DIR}/Stellarium.app/Contents")' \ + 'SET(CMAKE_INSTALL_PREFIX "${placeholder "out"}/Stellarium.app/Contents")' + ''; + + postFixup = lib.optionalString stdenv.isDarwin '' + wrapQtApp "$out"/Stellarium.app/Contents/MacOS/stellarium + ''; + meta = with lib; { description = "Free open-source planetarium"; homepage = "http://stellarium.org/"; license = licenses.gpl2; - - platforms = platforms.linux; # should be mesaPlatforms, but we don't have qt on darwin + platforms = platforms.unix; maintainers = with maintainers; [ peti ma27 ]; }; } |