libhangul: build from source

This commit is contained in:
Honnip
2026-06-01 16:00:18 +09:00
parent 496b0bed8a
commit 24b041cfa8
+14 -4
View File
@@ -1,23 +1,33 @@
{
lib,
stdenv,
fetchurl,
fetchFromGitHub,
autoreconfHook,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libhangul";
version = "0.2.0";
src = fetchurl {
url = "https://github.com/libhangul/libhangul/releases/download/libhangul-${finalAttrs.version}/libhangul-${finalAttrs.version}.tar.gz";
hash = "sha256-6gTmoM9IQKKjtWQcF2EGjHhpEDbbg50IOPTnplU6USA=";
src = fetchFromGitHub {
owner = "libhangul";
repo = "libhangul";
hash = "sha256-1cTDsRJpT5TLdJN8D2LfOISWeAOlSO6zKZOaCrTxooM=";
tag = "libhangul-${finalAttrs.version}";
};
preAutoreconf = "./autogen.sh";
configureFlags = [
# detection doesn't work for cross builds
"ac_cv_func_realloc_0_nonnull=yes"
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
meta = {
description = "Core algorithm library for Korean input routines";
mainProgram = "hangul";