mujs: 1.2.0 -> 1.3.2

Fixes CVE-2022-44789.

https://git.ghostscript.com/?p=mujs.git;a=shortlog;h=refs/tags/1.3.2
This commit is contained in:
Thomas Gerbet 2022-11-29 22:02:17 +01:00
parent 351823b3bd
commit 47aefa51cc

View File

@ -1,14 +1,24 @@
{ lib, stdenv, fetchurl, readline }: { lib, stdenv, fetchurl, fetchpatch, readline }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mujs"; pname = "mujs";
version = "1.2.0"; version = "1.3.2";
src = fetchurl { src = fetchurl {
url = "https://mujs.com/downloads/mujs-${version}.tar.xz"; url = "https://mujs.com/downloads/mujs-${version}.tar.xz";
sha256 = "sha256-ZpdtHgajUnVKI0Kvc9Guy7U8x82uK2jNoBO33c+SMjM="; sha256 = "sha256-SIZZP8aIsM3M0x5ey+Wv560b7iOqaeZnuHGv1d/GQMM=";
}; };
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 ]; buildInputs = [ readline ];
makeFlags = [ "prefix=$(out)" ]; makeFlags = [ "prefix=$(out)" ];