Commit 7811100b authored by Marijan Petričević's avatar Marijan Petričević Committed by Vincent Laporte
Browse files

soupault: remove references to ocaml

parent 6ac777ad
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@
  darwin,
  fetchzip,
  ocamlPackages,
  ocaml,
  removeReferencesTo,
  soupault,
  stdenv,
  testers,
@@ -22,7 +24,9 @@ ocamlPackages.buildDunePackage rec {
    hash = "sha256-UABbrNNcNaN9NgtAjCs4HUoNXMaK4QvCuWERuEnMG6I=";
  };

  nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
  nativeBuildInputs =
    [ removeReferencesTo ]
    ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
      darwin.sigtool
    ];

@@ -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";