10 stdenv.mkDerivation (finalAttrs: {
14 src = fetchFromGitHub {
17 rev = "v${finalAttrs.version}";
18 hash = "sha256-7IAkmlzgiPVd8yRv7LU5a7HWCB+eQk1Ur1KwZupwty0=";
35 (lib.cmakeBool "BUILD_SHARED_LIBS" true)
36 (lib.cmakeBool "BUILD_STATIC_QJS_EXE" stdenv.hostPlatform.isStatic)
39 env.NIX_CFLAGS_COMPILE = toString (
40 lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
41 "-Wno-error=stringop-overflow"
55 install -Dm644 -t ''${!outputInfo}/share/info *info
60 version = testers.testVersion {
61 package = finalAttrs.finalPackage;
62 command = "qjs --help || true";
67 homepage = "https://github.com/quickjs-ng/quickjs";
68 description = "Mighty JavaScript engine";
69 license = lib.licenses.mit;
71 maintainers = with lib.maintainers; [ AndersonTorres ];
72 platforms = lib.platforms.all;