summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien@users.noreply.github.com>2021-01-05 20:09:24 +0000
committerGitHub <noreply@github.com>2021-01-05 20:09:24 +0000
commitf3e84c4d422381fa8f119693bbb289ce79c542fb (patch)
tree494248b31f6f9c6283a7424d454c34bccb88699a /pkgs/applications/science
parentf35bf8ef29d2bd9e4f1a915202de355e126a9ffd (diff)
parentbc28967a1898f006119842a6ccd0484def2f72f6 (diff)
Merge pull request #107416 from hjones2199/phd2wrap
phd2: add GApps wrapper to fix breakage on non-nixos wayland systems
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/astronomy/phd2/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/applications/science/astronomy/phd2/default.nix b/pkgs/applications/science/astronomy/phd2/default.nix
index 98afba77c4f0..7ddad3852277 100644
--- a/pkgs/applications/science/astronomy/phd2/default.nix
+++ b/pkgs/applications/science/astronomy/phd2/default.nix
@@ -1,5 +1,5 @@
-{ stdenv, fetchFromGitHub, pkg-config, cmake, gtk3,
- wxGTK30-gtk3, curl, gettext, glib, indilib, libnova }:
+{ stdenv, fetchFromGitHub, pkg-config, cmake, gtk3, wxGTK30-gtk3,
+ curl, gettext, glib, indilib, libnova, wrapGAppsHook }:
stdenv.mkDerivation rec {
pname = "phd2";
@@ -12,13 +12,18 @@ stdenv.mkDerivation rec {
sha256 = "1ih7m9lilh12xbhmwm9kkicaqy72mi3firl6df7m5x38n2zj3zm4";
};
- nativeBuildInputs = [ cmake pkg-config ];
+ nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
buildInputs = [ gtk3 wxGTK30-gtk3 curl gettext glib indilib libnova ];
cmakeFlags = [
"-DOPENSOURCE_ONLY=1"
];
+ # Fix broken wrapped name scheme by moving wrapped binary to where wrapper expects it
+ postFixup = ''
+ mv $out/bin/.phd2.bin-wrapped $out/bin/.phd2-wrapped.bin
+ '';
+
meta = with stdenv.lib; {
homepage = "https://openphdguiding.org/";
description = "Telescope auto-guidance application";