libsciter: add aarch64-linux support (#456292)

This commit is contained in:
Philip Taron
2025-10-28 23:49:38 +00:00
committed by GitHub
+21 -3
View File
@@ -10,13 +10,28 @@
autoPatchelfHook,
}:
let
inherit (stdenv.targetPlatform) system;
src.x86_64-linux = {
urlPath = "x64";
sha256 = "a1682fbf55e004f1862d6ace31b5220121d20906bdbf308d0a9237b451e4db86";
};
src.aarch64-linux = {
urlPath = "arm64";
sha256 = "sha256-bqGPbvtOM8/A6acDbFJGGf4kzKo/4S/bWcH/XvxVySU=";
};
in
stdenv.mkDerivation {
pname = "libsciter";
version = "4.4.8.23-bis"; # Version specified in GitHub commit title
src = fetchurl {
url = "https://github.com/c-smile/sciter-sdk/raw/9f1724a45f5a53c4d513b02ed01cdbdab08fa0e5/bin.lnx/x64/libsciter-gtk.so";
sha256 = "a1682fbf55e004f1862d6ace31b5220121d20906bdbf308d0a9237b451e4db86";
url = "https://github.com/c-smile/sciter-sdk/raw/524a90ef7eab16575df9496f7e4c374bbd5fb1fe/bin.lnx/${src.${system}.urlPath}/libsciter-gtk.so";
inherit (src.${system}) sha256;
};
nativeBuildInputs = [
@@ -44,7 +59,10 @@ stdenv.mkDerivation {
meta = with lib; {
homepage = "https://sciter.com";
description = "Embeddable HTML/CSS/JavaScript engine for modern UI development";
platforms = [ "x86_64-linux" ];
platforms = [
"x86_64-linux"
"aarch64-linux"
];
maintainers = with maintainers; [ leixb ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;