Skip to content

Commit 7811100

Browse files
marijanpvbgl
authored andcommitted
soupault: remove references to ocaml
1 parent 6ac777a commit 7811100

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

pkgs/by-name/so/soupault/package.nix

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
darwin,
44
fetchzip,
55
ocamlPackages,
6+
ocaml,
7+
removeReferencesTo,
68
soupault,
79
stdenv,
810
testers,
@@ -22,9 +24,11 @@ ocamlPackages.buildDunePackage rec {
2224
hash = "sha256-UABbrNNcNaN9NgtAjCs4HUoNXMaK4QvCuWERuEnMG6I=";
2325
};
2426

25-
nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
26-
darwin.sigtool
27-
];
27+
nativeBuildInputs =
28+
[ removeReferencesTo ]
29+
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
30+
darwin.sigtool
31+
];
2832

2933
buildInputs = with ocamlPackages; [
3034
base64
@@ -48,6 +52,10 @@ ocamlPackages.buildDunePackage rec {
4852
yaml
4953
];
5054

55+
postFixup = ''
56+
find "$out" -type f -exec remove-references-to -t ${ocaml} '{}' +
57+
'';
58+
5159
passthru.tests.version = testers.testVersion {
5260
package = soupault;
5361
command = "soupault --version-number";

0 commit comments

Comments
 (0)