summary refs log tree commit diff
path: root/pkgs/development/python-modules/jsbeautifier
diff options
context:
space:
mode:
authorAlexandre Peyroux <alex@px.io>2019-04-05 21:56:45 +0200
committerAlexandre Peyroux <alex@px.io>2019-04-05 21:59:20 +0200
commit946807c888cc5bf9cd13832ae705a3db7113a0e1 (patch)
treed7a41f3ae56df969e8255a3b4b5306e2b63463a2 /pkgs/development/python-modules/jsbeautifier
parent9396b273cc83390a1727727bb01d9c0aa6e1a0dd (diff)
downloadnixpkgs-946807c888cc5bf9cd13832ae705a3db7113a0e1.tar
nixpkgs-946807c888cc5bf9cd13832ae705a3db7113a0e1.tar.gz
nixpkgs-946807c888cc5bf9cd13832ae705a3db7113a0e1.tar.bz2
nixpkgs-946807c888cc5bf9cd13832ae705a3db7113a0e1.tar.lz
nixpkgs-946807c888cc5bf9cd13832ae705a3db7113a0e1.tar.xz
nixpkgs-946807c888cc5bf9cd13832ae705a3db7113a0e1.tar.zst
nixpkgs-946807c888cc5bf9cd13832ae705a3db7113a0e1.zip
pythonPackages.jsbeautifier: fix build (#58608)
Diffstat (limited to 'pkgs/development/python-modules/jsbeautifier')
-rw-r--r--pkgs/development/python-modules/jsbeautifier/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/jsbeautifier/default.nix b/pkgs/development/python-modules/jsbeautifier/default.nix
index 9b2d3a5b832..fea40e9c9e3 100644
--- a/pkgs/development/python-modules/jsbeautifier/default.nix
+++ b/pkgs/development/python-modules/jsbeautifier/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchPypi, buildPythonApplication, EditorConfig, pytest, six }:
+{ lib, fetchPypi, buildPythonApplication, EditorConfig, fetchpatch, pytest, six }:
 
 buildPythonApplication rec {
   pname = "jsbeautifier";
@@ -13,6 +13,15 @@ buildPythonApplication rec {
     sha256 = "7d02baa9b0459bf9c5407c1b99ad5566de04a3b664b18a58ac64f52832034204";
   };
 
+  patches = [
+    (fetchpatch {
+      url = "https://github.com/beautify-web/js-beautify/commit/78e35a11cbb805fc044241d6465800ee2bd57ebc.patch";
+      sha256 = "1ah7nshk96yljy37i20v4fga834dix9cdbhkdc3flfm4904n4523";
+    })
+  ];
+
+  patchFlags = [ "-p2" ];
+
   meta = with lib; {
     homepage    = "http://jsbeautifier.org";
     description = "JavaScript unobfuscator and beautifier.";