2023-04-06 07:44:48 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, readline
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2014-11-29 13:11:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mujs";
|
2023-04-06 07:44:48 +00:00
|
|
|
version = "1.3.3";
|
2014-11-29 13:11:54 +00:00
|
|
|
|
2019-01-19 12:54:53 +00:00
|
|
|
src = fetchurl {
|
2023-04-06 07:44:48 +00:00
|
|
|
url = "https://mujs.com/downloads/mujs-${version}.tar.gz";
|
|
|
|
hash = "sha256-4sXuVBbf2iIwx6DLeJXfmpstWyBluxjn5k3sKnlqvhs=";
|
2014-11-29 13:11:54 +00:00
|
|
|
};
|
|
|
|
|
2019-01-19 12:54:53 +00:00
|
|
|
buildInputs = [ readline ];
|
2014-11-29 13:11:54 +00:00
|
|
|
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
|
2023-04-06 07:44:48 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
# No nicer place to track releases
|
|
|
|
url = "git://git.ghostscript.com/mujs.git";
|
|
|
|
};
|
|
|
|
|
2021-01-23 13:15:07 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://mujs.com/";
|
2014-11-29 13:11:54 +00:00
|
|
|
description = "A lightweight, embeddable Javascript interpreter";
|
2019-01-19 23:24:55 +00:00
|
|
|
platforms = platforms.unix;
|
2014-11-29 13:11:54 +00:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2021-04-15 08:18:55 +00:00
|
|
|
license = licenses.isc;
|
2014-11-29 13:11:54 +00:00
|
|
|
};
|
|
|
|
}
|