Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
38 lines
864 B
Nix
38 lines
864 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, fixDarwinDylibNames
|
|
, readline
|
|
, gitUpdater
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mujs";
|
|
version = "1.3.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://mujs.com/downloads/mujs-${version}.tar.gz";
|
|
hash = "sha256-eKMRrkIkQAd0ywnvW6omM8JpcVE/i5MdMiSg64WxPgs=";
|
|
};
|
|
|
|
buildInputs = [ readline ];
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ];
|
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
|
|
|
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";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pSub ];
|
|
license = licenses.isc;
|
|
};
|
|
}
|