3
0
Fork 0
forked from mirrors/nixpkgs

mujs: fix build on darwin

MuJS 1.3.3 made the Darwin patch obsolete, and seems that it can build
on Darwin without it.
This commit is contained in:
Mario Rodas 2023-04-10 14:35:00 -05:00
parent 23e55a367e
commit cd4ba7172b

View file

@ -1,7 +1,6 @@
{ 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)" ];