Skip to content

Commit

Permalink
pythonPackages.jsbeautifier: fix build (NixOS#58608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Peyroux committed Apr 5, 2019
1 parent 9396b27 commit 946807c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/development/python-modules/jsbeautifier/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, fetchPypi, buildPythonApplication, EditorConfig, pytest, six }:
{ lib, fetchPypi, buildPythonApplication, EditorConfig, fetchpatch, pytest, six }:

buildPythonApplication rec {
pname = "jsbeautifier";
Expand All @@ -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.";
Expand Down

0 comments on commit 946807c

Please sign in to comment.