2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2023-10-09 19:29:22 +00:00
|
|
|
, fixDarwinDylibNames
|
2023-04-12 12:48:02 +00:00
|
|
|
, readline
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mujs";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "1.3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-04-12 12:48:02 +00:00
|
|
|
url = "https://mujs.com/downloads/mujs-${version}.tar.gz";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-eKMRrkIkQAd0ywnvW6omM8JpcVE/i5MdMiSg64WxPgs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
installFlags = [ "install-shared" ];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
# No nicer place to track releases
|
|
|
|
url = "git://git.ghostscript.com/mujs.git";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://mujs.com/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Lightweight, embeddable Javascript interpreter";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2021-04-17 00:35:05 +00:00
|
|
|
license = licenses.isc;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|