1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

libunicode: init at 0.3.0-unstable-2023-03-05

This commit is contained in:
fortuneteller2k 2023-06-20 14:57:17 +08:00
parent d2f4d3b7af
commit 8f5dd15a66

View file

@ -0,0 +1,33 @@
{ lib, stdenv, fetchFromGitHub, fetchzip, cmake, catch2, fmt, python3 }:
let
ucd-version = "15.0.0";
ucd-src = fetchzip {
url = "https://www.unicode.org/Public/${ucd-version}/ucd/UCD.zip";
hash = "sha256-jj6bX46VcnH7vpc9GwM9gArG+hSPbOGL6E4SaVd0s60=";
stripRoot = false;
};
in stdenv.mkDerivation (final: {
pname = "libunicode";
version = "0.3.0-unstable-2023-03-05";
src = fetchFromGitHub {
owner = "contour-terminal";
repo = "libunicode";
rev = "65e0c6ddf9648b94aa9bc7dda0718401efa9ef8e";
hash = "sha256-F4CVU5MImkM571mD4iFxqTnNbk2GXKTGksqO4LH2uEk=";
};
nativeBuildInputs = [ cmake python3 ];
buildInputs = [ catch2 fmt ];
cmakeFlags = [ "-DLIBUNICODE_UCD_DIR=${ucd-src}" ];
meta = with lib; {
description = "Modern C++17 Unicode library";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ moni ];
};
})