nixpkgs/pkgs/by-name/mu/mujs/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
872 B
Nix
Raw Normal View History

{
lib,
stdenv,
fetchurl,
2023-09-10 04:20:00 +00:00
fixDarwinDylibNames,
readline,
gitUpdater,
}:
stdenv.mkDerivation rec {
pname = "mujs";
version = "1.3.5";
2019-01-19 12:54:53 +00:00
src = fetchurl {
url = "https://mujs.com/downloads/mujs-${version}.tar.gz";
hash = "sha256-eKMRrkIkQAd0ywnvW6omM8JpcVE/i5MdMiSg64WxPgs=";
};
2019-01-19 12:54:53 +00:00
buildInputs = [ readline ];
2023-09-10 04:20:00 +00:00
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ];
makeFlags = [ "prefix=$(out)" ];
2023-08-24 04:20:00 +00:00
installFlags = [ "install-shared" ];
passthru.updateScript = gitUpdater {
# No nicer place to track releases
url = "git://git.ghostscript.com/mujs.git";
};
meta = with lib; {
homepage = "https://mujs.com/";
description = "Lightweight, embeddable Javascript interpreter";
2019-01-19 23:24:55 +00:00
platforms = platforms.unix;
maintainers = with maintainers; [ pSub ];
2021-04-15 08:18:55 +00:00
license = licenses.isc;
};
}