soupault: remove references to ocaml

This commit is contained in:
Marijan Petričević 2025-01-30 11:11:55 +01:00 committed by Vincent Laporte
parent 6ac777ad0c
commit 7811100be8

View File

@ -3,6 +3,8 @@
darwin,
fetchzip,
ocamlPackages,
ocaml,
removeReferencesTo,
soupault,
stdenv,
testers,
@ -22,9 +24,11 @@ ocamlPackages.buildDunePackage rec {
hash = "sha256-UABbrNNcNaN9NgtAjCs4HUoNXMaK4QvCuWERuEnMG6I=";
};
nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
darwin.sigtool
];
nativeBuildInputs =
[ removeReferencesTo ]
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
darwin.sigtool
];
buildInputs = with ocamlPackages; [
base64
@ -48,6 +52,10 @@ ocamlPackages.buildDunePackage rec {
yaml
];
postFixup = ''
find "$out" -type f -exec remove-references-to -t ${ocaml} '{}' +
'';
passthru.tests.version = testers.testVersion {
package = soupault;
command = "soupault --version-number";