···14 sha256 = "sha256-Xbvg/FcuX/AL2reWsaM2oaFyLby3+HDCfYtRyswE7DA=";
15 };
1617- # Extension point for when thg's mercurial is lagging behind mainline.
18- tortoiseMercurial = mercurial;
19-20 propagatedBuildInputs = with python3Packages; [
21- tortoiseMercurial
022 qscintilla-qt5
23 iniparse
24 ];
25- nativeBuildInputs = [ qt5.wrapQtAppsHook ];
2627- doCheck = true;
000028 postInstall = ''
29- mkdir -p $out/share/doc/tortoisehg
30- cp COPYING.txt $out/share/doc/tortoisehg/Copying.txt
31- # convenient alias
32 ln -s $out/bin/thg $out/bin/tortoisehg
33- wrapQtApp $out/bin/thg
34 '';
350036 checkPhase = ''
37- export QT_QPA_PLATFORM=offscreen
38- echo "test: thg smoke test"
0000039 $out/bin/thg -h > help.txt &
40 sleep 1s
41- if grep "list of commands" help.txt; then
42- echo "thg help output was captured. Seems like package in a working state."
43- exit 0
44- else
45- echo "thg help output was not captured. Seems like package is broken."
46- exit 1
47- fi
48 '';
4950- passthru.mercurial = tortoiseMercurial;
00005152 meta = {
53 description = "Qt based graphical tool for working with Mercurial";
···14 sha256 = "sha256-Xbvg/FcuX/AL2reWsaM2oaFyLby3+HDCfYtRyswE7DA=";
15 };
1617+ nativeBuildInputs = [
18+ qt5.wrapQtAppsHook
19+ ];
20 propagatedBuildInputs = with python3Packages; [
21+ mercurial
22+ # The one from python3Packages
23 qscintilla-qt5
24 iniparse
25 ];
02627+ # In order to spare double wrapping, we use:
28+ preFixup = ''
29+ makeWrapperArgs+=("''${qtWrapperArgs[@]}")
30+ '';
31+ # Convenient alias
32 postInstall = ''
00033 ln -s $out/bin/thg $out/bin/tortoisehg
034 '';
3536+ # In python3Packages.buildPythonApplication doCheck is always true, and we
37+ # override it to not run the default unittests
38 checkPhase = ''
39+ runHook preCheck
40+41+ $out/bin/thg version | grep -q "${version}"
42+ # Detect breakage of thg in case of out-of-sync mercurial update. In that
43+ # case any thg subcommand just opens up an gui dialog with a description of
44+ # version mismatch.
45+ echo "thg smoke test"
46 $out/bin/thg -h > help.txt &
47 sleep 1s
48+ grep -q "list of commands" help.txt
49+50+ runHook postCheck
000051 '';
5253+ passthru = {
54+ # If at some point we'll override this argument, it might be useful to have
55+ # access to it here.
56+ inherit mercurial;
57+ };
5859 meta = {
60 description = "Qt based graphical tool for working with Mercurial";