Files
nixpkgs/pkgs/by-name/li/libunicode/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchzip,
cmake,
catch2_3,
fmt,
python3,
}:
let
ucd-version = "16.0.0";
ucd-src = fetchzip {
url = "https://www.unicode.org/Public/${ucd-version}/ucd/UCD.zip";
hash = "sha256-GgEYjOLrxxfTAQsc2bpi7ShoAr3up8z7GXXpe+txFuw";
stripRoot = false;
};
in
stdenv.mkDerivation (final: {
pname = "libunicode";
version = "0.6.0";
src = fetchFromGitHub {
owner = "contour-terminal";
repo = "libunicode";
rev = "v${final.version}";
hash = "sha256-zX33aTQ7Wgl8MABu+o6nA2HWrfXD4zQ9b3NDB+T2saI";
};
# Fix: set_target_properties Can not find target to add properties to: Catch2, et al.
patches = [ ./remove-target-properties.diff ];
nativeBuildInputs = [
cmake
python3
];
buildInputs = [
catch2_3
fmt
];
cmakeFlags = [ "-DLIBUNICODE_UCD_DIR=${ucd-src}" ];
meta = with lib; {
description = "Modern C++20 Unicode library";
mainProgram = "unicode-query";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ moni ];
};
})