depot/third_party/nixpkgs/pkgs/development/interpreters/mujs/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

38 lines
853 B
Nix

{ lib
, stdenv
, fetchurl
, fixDarwinDylibNames
, 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 ];
nativeBuildInputs = lib.optionals stdenv.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 = "A lightweight, embeddable Javascript interpreter";
platforms = platforms.unix;
maintainers = with maintainers; [ pSub ];
license = licenses.isc;
};
}