Files
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

106 lines
2.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
wolfssl,
bionic-translation,
python3,
which,
jdk17,
zip,
xz,
icu,
zlib,
libcap,
expat,
openssl,
libbsd,
lz4,
runtimeShell,
libpng,
makeWrapper,
binutils,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "art-standalone";
version = "0-unstable-2025-09-03";
src = fetchFromGitLab {
owner = "android_translation_layer";
repo = "art_standalone";
rev = "10d60509c9073791f9eca1d2b8443d40a40edc05";
hash = "sha256-Xg6s58jymma1sNb6P7pwWFpYq1O6GoynrgPeLZRD+rI=";
};
patches = [
# Do not hardocde addr2line binary path
./no-hardcode-path-addr2line.patch
];
postPatch = ''
chmod +x dalvik/dx/etc/{dx,dexmerger}
patchShebangs .
substituteInPlace build/core/config.mk build/core/main.mk \
--replace-fail "/bin/bash" "${runtimeShell}"
'';
enableParallelBuilding = true;
strictDeps = true;
nativeBuildInputs = [
jdk17
makeWrapper
python3
which
zip
];
buildInputs = [
bionic-translation
expat
icu
libbsd
libcap
libpng
lz4
openssl
(wolfssl.overrideAttrs (oldAttrs: {
configureFlags = oldAttrs.configureFlags ++ [
"--enable-jni"
];
# Disable failing tests when jni enabled
postPatch = oldAttrs.postPatch or "" + ''
sed -i '/TEST_DECL(test_wolfSSL_Tls13_ECH)/d;
/TEST_DECL(test_wolfSSL_Tls13_ECH_HRR)/d;
/TEST_DECL(test_TLSX_CA_NAMES_bad_extension)/d' tests/api.c
sed -i '/quic/d' tests/include.am
sed -i '300,305d' tests/unit.c
'';
}))
xz
zlib
];
makeFlags = [
"____LIBDIR=lib"
"____PREFIX=${placeholder "out"}"
"____INSTALL_ETC=${placeholder "out"}/etc"
];
postFixup = ''
wrapProgram $out/bin/dx \
--prefix LD_LIBRARY_PATH : $out/lib \
--prefix PATH : ${lib.makeBinPath [ binutils ]}
'';
meta = {
description = "Art and dependencies with modifications to make it work on Linux";
homepage = "https://gitlab.com/android_translation_layer/art_standalone";
# No license specified yet
license = lib.licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ onny ];
};
})