30 stdenv.mkDerivation (final: {
32 version = "0.4.3.6442";
34 src = fetchFromGitHub {
35 owner = "contour-terminal";
37 rev = "v${final.version}";
38 hash = "sha256-m3BEhGbyQm07+1/h2IRhooLPDewmSuhRHOMpWPDluiY=";
41 patches = [ ./dont-fix-app-bundle.diff ];
43 outputs = [ "out" "terminfo" ];
52 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ sigtool ];
70 ++ lib.optionals stdenv.hostPlatform.isLinux [ libutempter ]
71 ++ lib.optionals stdenv.hostPlatform.isDarwin [ utmp ];
73 cmakeFlags = [ "-DCONTOUR_QT_VERSION=6" ];
76 mkdir -p $out/nix-support $terminfo/share
77 '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
78 mkdir $out/Applications
79 installShellCompletion --zsh $out/contour.app/Contents/Resources/shell-integration/shell-integration.zsh
80 installShellCompletion --fish $out/contour.app/Contents/Resources/shell-integration/shell-integration.fish
81 cp -r $out/contour.app/Contents/Resources/terminfo $terminfo/share
82 mv $out/contour.app $out/Applications
83 ln -s $out/bin $out/Applications/contour.app/Contents/MacOS
84 '' + lib.optionalString stdenv.hostPlatform.isLinux ''
85 mv $out/share/terminfo $terminfo/share/
86 installShellCompletion --zsh $out/share/contour/shell-integration/shell-integration.zsh
87 installShellCompletion --fish $out/share/contour/shell-integration/shell-integration.fish
89 echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
92 passthru.tests.test = nixosTests.terminal-emulators.contour;
95 description = "Modern C++ Terminal Emulator";
96 homepage = "https://github.com/contour-terminal/contour";
97 changelog = "https://github.com/contour-terminal/contour/raw/v${version}/Changelog.md";
98 license = licenses.asl20;
99 maintainers = with maintainers; [ moni ];
100 platforms = platforms.unix;
101 mainProgram = "contour";
102 # This was caused by boxed-cpp 1.4.2 -> 1.4.3
103 # More details in issue #345752