Skip to content

Commit

Permalink
mujs: 1.2.0 -> 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSuisse committed Nov 30, 2022
1 parent 351823b commit 47aefa5
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pkgs/development/interpreters/mujs/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
{ lib, stdenv, fetchurl, readline }:
{ lib, stdenv, fetchurl, fetchpatch, readline }:

stdenv.mkDerivation rec {
pname = "mujs";
version = "1.2.0";
version = "1.3.2";

src = fetchurl {
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 ];

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

0 comments on commit 47aefa5

Please sign in to comment.