contour: 0.6.1.7494 -> 0.6.2.8008 (#480877)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
cmake,
|
||||
pkg-config,
|
||||
boxed-cpp,
|
||||
cairo,
|
||||
freetype,
|
||||
fontconfig,
|
||||
libunicode,
|
||||
@@ -28,13 +29,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "contour";
|
||||
version = "0.6.1.7494";
|
||||
version = "0.6.2.8008";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "contour-terminal";
|
||||
repo = "contour";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-jgasZhdcJ+UF3VIl8HLcxBayvbA/dkaOG8UtANRgeP4=";
|
||||
hash = "sha256-xbJxV1q7+ddhnH0jDYzqVHwARCD0EyVh3POFRkl4d1Q=";
|
||||
};
|
||||
|
||||
patches = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
@@ -59,6 +60,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
buildInputs = [
|
||||
boxed-cpp
|
||||
cairo
|
||||
fontconfig
|
||||
freetype
|
||||
libunicode
|
||||
@@ -79,8 +81,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
darwin.libutil
|
||||
];
|
||||
|
||||
cmakeFlags = [ "-DCONTOUR_QT_VERSION=6" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/nix-support $terminfo/share
|
||||
''
|
||||
|
||||
@@ -7,26 +7,27 @@
|
||||
catch2_3,
|
||||
fmt,
|
||||
python3,
|
||||
simdImplementation ? "none", # see https://github.com/contour-terminal/libunicode/blob/v0.7.0/CMakeLists.txt#L53 for options
|
||||
}:
|
||||
|
||||
let
|
||||
ucd-version = "16.0.0";
|
||||
ucd-version = "17.0.0";
|
||||
|
||||
ucd-src = fetchzip {
|
||||
url = "https://www.unicode.org/Public/${ucd-version}/ucd/UCD.zip";
|
||||
hash = "sha256-GgEYjOLrxxfTAQsc2bpi7ShoAr3up8z7GXXpe+txFuw";
|
||||
hash = "sha256-k2OFy8xPvn+Bboyr1EsmZNeVDOglvk2kSZ+H17YaX60=";
|
||||
stripRoot = false;
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation (final: {
|
||||
pname = "libunicode";
|
||||
version = "0.6.0";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "contour-terminal";
|
||||
repo = "libunicode";
|
||||
rev = "v${final.version}";
|
||||
hash = "sha256-zX33aTQ7Wgl8MABu+o6nA2HWrfXD4zQ9b3NDB+T2saI";
|
||||
tag = "v${final.version}";
|
||||
hash = "sha256-J8qawT1oiUO9xTVEMQvsY0K2NtIfkUq9PoCbFt6wqek=";
|
||||
};
|
||||
|
||||
# Fix: set_target_properties Can not find target to add properties to: Catch2, et al.
|
||||
@@ -41,7 +42,10 @@ stdenv.mkDerivation (final: {
|
||||
fmt
|
||||
];
|
||||
|
||||
cmakeFlags = [ "-DLIBUNICODE_UCD_DIR=${ucd-src}" ];
|
||||
cmakeFlags = [
|
||||
(lib.cmakeFeature "LIBUNICODE_SIMD_IMPLEMENTATION" simdImplementation)
|
||||
(lib.cmakeFeature "LIBUNICODE_UCD_DIR" "${ucd-src}")
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Modern C++20 Unicode library";
|
||||
|
||||
Reference in New Issue
Block a user