sks: fix on static

This commit is contained in:
quantenzitrone
2026-02-18 06:13:30 +01:00
parent 8cdd19499d
commit 9230e29dbc
+18 -5
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
pkgsHostHost,
ocaml-ng,
perl,
zlib,
@@ -39,11 +40,23 @@ stdenv.mkDerivation (finalAttrs: {
"webSamples"
];
nativeBuildInputs = [
ocaml
findlib
perl
];
nativeBuildInputs =
# use static -> static ocaml because dynamic -> static ocaml doesn't compile
(
if stdenv.hostPlatform.isStatic then
[
pkgsHostHost.ocaml-ng.ocamlPackages_4_12.ocaml
pkgsHostHost.ocaml-ng.ocamlPackages_4_12.findlib
]
else
[
ocaml
findlib
]
)
++ [
perl
];
buildInputs = [
zlib
db