mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
cd4ba7172b
MuJS 1.3.3 made the Darwin patch obsolete, and seems that it can build on Darwin without it.
34 lines
713 B
Nix
34 lines
713 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, readline
|
|
, gitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mujs";
|
|
version = "1.3.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://mujs.com/downloads/mujs-${version}.tar.gz";
|
|
hash = "sha256-4sXuVBbf2iIwx6DLeJXfmpstWyBluxjn5k3sKnlqvhs=";
|
|
};
|
|
|
|
buildInputs = [ readline ];
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
# No nicer place to track releases
|
|
url = "git://git.ghostscript.com/mujs.git";
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://mujs.com/";
|
|
description = "A lightweight, embeddable Javascript interpreter";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pSub ];
|
|
license = licenses.isc;
|
|
};
|
|
}
|