mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
Merge pull request #269995 from mfenniak/bismuth-esbuild-bug
libsForQt5.bismuth: Fix generated JS
This commit is contained in:
commit
c5b3e8fa80
13
pkgs/desktops/plasma-5/3rdparty/addons/bismuth/0001-esbuild-config.patch
vendored
Normal file
13
pkgs/desktops/plasma-5/3rdparty/addons/bismuth/0001-esbuild-config.patch
vendored
Normal file
|
@ -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()
|
|
@ -21,6 +21,10 @@ mkDerivation rec {
|
||||||
sha256 = "sha256-c13OFEw6E/I8j/mqeLnuc9Chi6pc3+AgwAMPpCzh974=";
|
sha256 = "sha256-c13OFEw6E/I8j/mqeLnuc9Chi6pc3+AgwAMPpCzh974=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./0001-esbuild-config.patch
|
||||||
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DUSE_TSC=OFF"
|
"-DUSE_TSC=OFF"
|
||||||
"-DUSE_NPM=OFF"
|
"-DUSE_NPM=OFF"
|
||||||
|
|
Loading…
Reference in a new issue