gpxsee: 7.31 -> 7.32

This commit is contained in:
Nikolay Korotkiy 2020-09-23 09:49:37 +03:00 committed by Bjørn Forsman
parent 2adef714fc
commit a502146d7a

View file

@ -1,28 +1,24 @@
{ stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qttranslations }:
{ stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qttranslations, substituteAll }:
mkDerivation rec {
pname = "gpxsee";
version = "7.31";
version = "7.32";
src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
rev = version;
sha256 = "0y60h66p8ydkinxk9x4sp4cm6gq66nc9jcavy135vmycsiq9gphn";
sha256 = "0mcd6zv71laykg1208vkqmaxv1v12mqq47156gb78a5ww8paa0ka";
};
patches = [
patches = (substituteAll {
# See https://github.com/NixOS/nixpkgs/issues/86054
./fix-qttranslations-path.diff
];
src = ./fix-qttranslations-path.diff;
inherit qttranslations;
});
nativeBuildInputs = [ qmake qttools ];
postPatch = ''
substituteInPlace src/GUI/app.cpp \
--subst-var-by qttranslations ${qttranslations}
'';
preConfigure = ''
lrelease gpxsee.pro
'';