Skip to content

Commit

Permalink
Merge pull request NixOS#269995 from mfenniak/bismuth-esbuild-bug
Browse files Browse the repository at this point in the history
libsForQt5.bismuth: Fix generated JS
  • Loading branch information
K900 authored Dec 5, 2023
2 parents 07b6ba4 + 748ccc9 commit c5b3e8f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/kwinscript/CMakeLists.txt b/src/kwinscript/CMakeLists.txt
index 9e2f7054..ed607027 100644
--- a/src/kwinscript/CMakeLists.txt
+++ b/src/kwinscript/CMakeLists.txt
@@ -39,7 +39,7 @@ endif()
set(ESBUILD_COMMAND
"esbuild" "--bundle" "${CMAKE_CURRENT_SOURCE_DIR}/index.ts"
"--outfile=${CMAKE_CURRENT_BINARY_DIR}/bismuth/contents/code/index.mjs"
- "--format=esm" "--platform=neutral")
+ "--format=esm" "--platform=neutral" "--target=es6")
if(USE_NPM)
list(PREPEND ESBUILD_COMMAND "npx")
endif()
4 changes: 4 additions & 0 deletions pkgs/desktops/plasma-5/3rdparty/addons/bismuth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ mkDerivation rec {
sha256 = "sha256-c13OFEw6E/I8j/mqeLnuc9Chi6pc3+AgwAMPpCzh974=";
};

patches = [
./0001-esbuild-config.patch
];

cmakeFlags = [
"-DUSE_TSC=OFF"
"-DUSE_NPM=OFF"
Expand Down

0 comments on commit c5b3e8f

Please sign in to comment.