Commit cd4ba717 authored by Mario Rodas's avatar Mario Rodas
Browse files

mujs: fix build on darwin

MuJS 1.3.3 made the Darwin patch obsolete, and seems that it can build
on Darwin without it.
parent 23e55a36
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchurl
, fetchpatch
, readline
, gitUpdater
}:
@@ -15,16 +14,6 @@ stdenv.mkDerivation rec {
    hash = "sha256-4sXuVBbf2iIwx6DLeJXfmpstWyBluxjn5k3sKnlqvhs=";
  };

  patches = lib.optionals stdenv.isDarwin [
    (fetchpatch {
      # ld: library not found for -l:libmujs.a
      name = "darwin-failures.patch";
      url = "https://git.ghostscript.com/?p=mujs.git;a=patch;h=d592c785c0b2f9fea982ac3fe7b88fdd7c4817fc";
      sha256 = "sha256-/57A7S65LWZFyQIGe+LtqDMu85K1N/hbztXB+/nCDJk=";
      revert = true;
    })
  ];

  buildInputs = [ readline ];

  makeFlags = [ "prefix=$(out)" ];