From 3adc59d5ae6ab94846ce8d8008393c165e9c19d5 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sun, 16 Apr 2017 09:42:37 +0200 Subject: [PATCH] gpxsee: fix open dialog and online maps --- pkgs/applications/misc/gpxsee/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/gpxsee/default.nix b/pkgs/applications/misc/gpxsee/default.nix index 493fbd6a7caf..5b977d13796a 100644 --- a/pkgs/applications/misc/gpxsee/default.nix +++ b/pkgs/applications/misc/gpxsee/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, qmakeHook, qttools }: +{ stdenv, fetchFromGitHub, qmakeHook, qtbase, qttools, makeQtWrapper }: stdenv.mkDerivation rec { name = "gpxsee-${version}"; @@ -11,15 +11,19 @@ stdenv.mkDerivation rec { sha256 = "15f686frxlrmdvh5cc837kx62g0ihqj4vb87i8433g7l5vqkv3lf"; }; - nativeBuildInputs = [ qmakeHook qttools ]; + nativeBuildInputs = [ qmakeHook qttools makeQtWrapper ]; preConfigure = '' + substituteInPlace src/config.h --replace /usr/share/gpxsee $out/share/gpxsee lrelease lang/*.ts ''; preFixup = '' - mkdir -p $out/bin - cp GPXSee $out/bin + install -Dm755 GPXSee $out/bin/GPXSee + wrapQtProgram $out/bin/GPXSee + + mkdir -p $out/share/gpxsee + cp pkg/maps.txt $out/share/gpxsee ''; meta = with stdenv.lib; {