Skip to content

Commit

Permalink
ktlint: add gnused to the script's path
Browse files Browse the repository at this point in the history
As of ktlint 0.44.0, the startup script makes use of `sed`, if the latter is not available in the path, the program fails silently.

pinterest/ktlint@f72be11
  • Loading branch information
silverraven691 committed Sep 28, 2022
1 parent 422cb36 commit 80eaa7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/tools/ktlint/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, makeWrapper, jre_headless }:
{ lib, stdenv, fetchurl, makeWrapper, jre_headless, gnused }:

stdenv.mkDerivation rec {
pname = "ktlint";
Expand All @@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
'';

postFixup = ''
wrapProgram $out/bin/ktlint --prefix PATH : "${jre_headless}/bin"
wrapProgram $out/bin/ktlint --prefix PATH : "${lib.makeBinPath [ jre_headless gnused ]}"
'';

meta = with lib; {
Expand Down

0 comments on commit 80eaa7f

Please sign in to comment.