summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoni <lythe1107@gmail.com>2024-11-03 08:51:42 +0800
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-11-23 10:42:08 +0000
commitce562a789d29ccae029ae54c4e38f4f54bd805a8 (patch)
tree72c0164dd96d2434cb9cef25b0b7c31fe21bbe50
parenttermbench-pro: 2023-01-26 -> 2024-10-05 (diff)
downloadnixpkgs-ce562a789d29ccae029ae54c4e38f4f54bd805a8.tar.gz
contour: 0.4.3.6442 -> 0.5.1.7247
(cherry picked from commit b1fa370d51ae7090edb83a99da9effedcde436ed)
-rw-r--r--pkgs/applications/terminal-emulators/contour/default.nix106
-rw-r--r--pkgs/by-name/co/contour/dont-fix-app-bundle.diff (renamed from pkgs/applications/terminal-emulators/contour/dont-fix-app-bundle.diff)0
-rw-r--r--pkgs/by-name/co/contour/package.nix114
-rw-r--r--pkgs/by-name/gl/glaze/package.nix4
-rw-r--r--pkgs/top-level/all-packages.nix19
5 files changed, 119 insertions, 124 deletions
diff --git a/pkgs/applications/terminal-emulators/contour/default.nix b/pkgs/applications/terminal-emulators/contour/default.nix
deleted file mode 100644
index 78a1b7243cdc..000000000000
--- a/pkgs/applications/terminal-emulators/contour/default.nix
+++ /dev/null
@@ -1,106 +0,0 @@
-{ lib
-, stdenv
-, fetchFromGitHub
-, cmake
-, pkg-config
-, boxed-cpp
-, freetype
-, fontconfig
-, libunicode
-, libutempter
-, termbench-pro
-, qtmultimedia
-, qt5compat
-, wrapQtAppsHook
-, pcre
-, boost
-, catch2
-, fmt
-, microsoft-gsl
-, range-v3
-, yaml-cpp
-, ncurses
-, file
-, utmp
-, sigtool
-, nixosTests
-, installShellFiles
-}:
-
-stdenv.mkDerivation (final: {
- pname = "contour";
- version = "0.4.3.6442";
-
- src = fetchFromGitHub {
- owner = "contour-terminal";
- repo = "contour";
- rev = "v${final.version}";
- hash = "sha256-m3BEhGbyQm07+1/h2IRhooLPDewmSuhRHOMpWPDluiY=";
- };
-
- patches = [ ./dont-fix-app-bundle.diff ];
-
- outputs = [ "out" "terminfo" ];
-
- nativeBuildInputs = [
- cmake
- pkg-config
- ncurses
- file
- wrapQtAppsHook
- installShellFiles
- ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ sigtool ];
-
- buildInputs = [
- boxed-cpp
- fontconfig
- freetype
- libunicode
- termbench-pro
- qtmultimedia
- qt5compat
- pcre
- boost
- catch2
- fmt
- microsoft-gsl
- range-v3
- yaml-cpp
- ]
- ++ lib.optionals stdenv.hostPlatform.isLinux [ libutempter ]
- ++ lib.optionals stdenv.hostPlatform.isDarwin [ utmp ];
-
- cmakeFlags = [ "-DCONTOUR_QT_VERSION=6" ];
-
- postInstall = ''
- mkdir -p $out/nix-support $terminfo/share
- '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
- mkdir $out/Applications
- installShellCompletion --zsh $out/contour.app/Contents/Resources/shell-integration/shell-integration.zsh
- installShellCompletion --fish $out/contour.app/Contents/Resources/shell-integration/shell-integration.fish
- cp -r $out/contour.app/Contents/Resources/terminfo $terminfo/share
- mv $out/contour.app $out/Applications
- ln -s $out/bin $out/Applications/contour.app/Contents/MacOS
- '' + lib.optionalString stdenv.hostPlatform.isLinux ''
- mv $out/share/terminfo $terminfo/share/
- installShellCompletion --zsh $out/share/contour/shell-integration/shell-integration.zsh
- installShellCompletion --fish $out/share/contour/shell-integration/shell-integration.fish
- '' + ''
- echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
- '';
-
- passthru.tests.test = nixosTests.terminal-emulators.contour;
-
- meta = with lib; {
- description = "Modern C++ Terminal Emulator";
- homepage = "https://github.com/contour-terminal/contour";
- changelog = "https://github.com/contour-terminal/contour/raw/v${version}/Changelog.md";
- license = licenses.asl20;
- maintainers = with maintainers; [ moni ];
- platforms = platforms.unix;
- mainProgram = "contour";
- # This was caused by boxed-cpp 1.4.2 -> 1.4.3
- # More details in issue #345752
- broken = true;
- };
-})
diff --git a/pkgs/applications/terminal-emulators/contour/dont-fix-app-bundle.diff b/pkgs/by-name/co/contour/dont-fix-app-bundle.diff
index e5f8bb44c50c..e5f8bb44c50c 100644
--- a/pkgs/applications/terminal-emulators/contour/dont-fix-app-bundle.diff
+++ b/pkgs/by-name/co/contour/dont-fix-app-bundle.diff
diff --git a/pkgs/by-name/co/contour/package.nix b/pkgs/by-name/co/contour/package.nix
new file mode 100644
index 000000000000..03f09fab4025
--- /dev/null
+++ b/pkgs/by-name/co/contour/package.nix
@@ -0,0 +1,114 @@
+{
+ lib,
+ stdenv,
+ fetchFromGitHub,
+ cmake,
+ pkg-config,
+ boxed-cpp,
+ freetype,
+ fontconfig,
+ libunicode,
+ libutempter,
+ termbench-pro,
+ qt6,
+ pcre,
+ boost,
+ catch2_3,
+ fmt,
+ microsoft-gsl,
+ range-v3,
+ yaml-cpp,
+ ncurses,
+ file,
+ apple-sdk_11,
+ libutil,
+ sigtool,
+ nixosTests,
+ installShellFiles,
+}:
+
+stdenv.mkDerivation (final: {
+ pname = "contour";
+ version = "0.5.1.7247";
+
+ src = fetchFromGitHub {
+ owner = "contour-terminal";
+ repo = "contour";
+ rev = "v${final.version}";
+ hash = "sha256-/vpbyaULemyM3elwaoofvbeeID7jNrmu8X8HlZxWGCk";
+ };
+
+ patches = [ ./dont-fix-app-bundle.diff ];
+
+ outputs = [
+ "out"
+ "terminfo"
+ ];
+
+ nativeBuildInputs = [
+ cmake
+ pkg-config
+ ncurses
+ file
+ qt6.wrapQtAppsHook
+ installShellFiles
+ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ sigtool ];
+
+ buildInputs =
+ [
+ boxed-cpp
+ fontconfig
+ freetype
+ libunicode
+ termbench-pro
+ qt6.qtmultimedia
+ qt6.qt5compat
+ pcre
+ boost
+ catch2_3
+ fmt
+ microsoft-gsl
+ range-v3
+ yaml-cpp
+ ]
+ ++ lib.optionals stdenv.hostPlatform.isLinux [ libutempter ]
+ ++ lib.optionals stdenv.hostPlatform.isDarwin [
+ apple-sdk_11
+ libutil
+ ];
+
+ cmakeFlags = [ "-DCONTOUR_QT_VERSION=6" ];
+
+ postInstall =
+ ''
+ mkdir -p $out/nix-support $terminfo/share
+ ''
+ + lib.optionalString stdenv.hostPlatform.isDarwin ''
+ mkdir $out/Applications
+ installShellCompletion --zsh $out/contour.app/Contents/Resources/shell-integration/shell-integration.zsh
+ installShellCompletion --fish $out/contour.app/Contents/Resources/shell-integration/shell-integration.fish
+ cp -r $out/contour.app/Contents/Resources/terminfo $terminfo/share
+ mv $out/contour.app $out/Applications
+ ln -s $out/bin $out/Applications/contour.app/Contents/MacOS
+ ''
+ + lib.optionalString stdenv.hostPlatform.isLinux ''
+ mv $out/share/terminfo $terminfo/share/
+ installShellCompletion --zsh $out/share/contour/shell-integration/shell-integration.zsh
+ installShellCompletion --fish $out/share/contour/shell-integration/shell-integration.fish
+ ''
+ + ''
+ echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
+ '';
+
+ passthru.tests.test = nixosTests.terminal-emulators.contour;
+
+ meta = with lib; {
+ description = "Modern C++ Terminal Emulator";
+ homepage = "https://github.com/contour-terminal/contour";
+ changelog = "https://github.com/contour-terminal/contour/raw/v${version}/Changelog.md";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ moni ];
+ platforms = platforms.unix;
+ mainProgram = "contour";
+ };
+})
diff --git a/pkgs/by-name/gl/glaze/package.nix b/pkgs/by-name/gl/glaze/package.nix
index 733a92774535..a36c79d89b39 100644
--- a/pkgs/by-name/gl/glaze/package.nix
+++ b/pkgs/by-name/gl/glaze/package.nix
@@ -3,7 +3,7 @@
stdenv,
fetchFromGitHub,
cmake,
- avx2 ? false,
+ enableAvx2 ? false,
}:
stdenv.mkDerivation (final: {
@@ -18,7 +18,7 @@ stdenv.mkDerivation (final: {
};
nativeBuildInputs = [ cmake ];
- cmakeFlags = [ "-Dglaze_ENABLE_AVX2=${if avx2 then "ON" else "OFF"}" ];
+ cmakeFlags = [ (lib.cmakeBool "glaze_ENABLE_AVX2" enableAvx2) ];
meta = with lib; {
description = "Extremely fast, in memory, JSON and interface library for modern C++";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a3dff550859d..2833e9181ec8 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1548,12 +1548,9 @@ with pkgs;
### APPLICATIONS/TERMINAL-EMULATORS
- contour = qt6.callPackage ../applications/terminal-emulators/contour {
- inherit (darwin.apple_sdk_11_0.libs) utmp;
- inherit (darwin) sigtool;
- stdenv = if stdenv.hostPlatform.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv;
- catch2 = catch2_3;
- fmt = fmt_9;
+ contour = callPackage ../by-name/co/contour/package.nix {
+ inherit (darwin) libutil sigtool;
+ stdenv = if stdenv.hostPlatform.isDarwin then llvmPackages_17.stdenv else stdenv;
};
cool-retro-term = libsForQt5.callPackage ../applications/terminal-emulators/cool-retro-term { };
@@ -10241,16 +10238,6 @@ with pkgs;
stdenv = if stdenv.hostPlatform.isDarwin then llvmPackages_17.stdenv else stdenv;
};
- libusbgx = callPackage ../development/libraries/libusbgx { };
-
- libusbsio = callPackage ../development/libraries/libusbsio { };
-
- libucontext = callPackage ../development/libraries/libucontext { };
-
- libutempter = callPackage ../development/libraries/libutempter { };
-
- libuldaq = callPackage ../development/libraries/libuldaq { };
-
libunwind =
# Use the system unwinder in the SDK but provide a compatibility package to:
# 1. avoid evaluation errors with setting `unwind` to `null`; and