deepin.dtkcore: explicitly set DTK_VERSION

The build system fails to detect the version to build, defaulting to
the minimum one. To circunvent that it has to be explicitly set.
This commit is contained in:
José Romildo Malaquias 2019-06-25 22:26:16 -03:00
parent 880bc93fc0
commit 27170f9619

View File

@ -30,7 +30,10 @@ stdenv.mkDerivation rec {
sed -i tools/script/dtk-translate.py -e "s,#!env,#!/usr/bin/env,"
'';
qmakeFlags = [ "MKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs" ];
qmakeFlags = [
"DTK_VERSION=${version}"
"MKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs"
];
postFixup = ''
chmod +x $out/lib/dtk2/*.py